mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
fix: Add roothandler for range formatting
This commit is contained in:
parent
5b660d9b60
commit
91c239b509
@ -17,21 +17,22 @@ var lspHandler protocol.Handler
|
|||||||
func SetUpRootHandler() {
|
func SetUpRootHandler() {
|
||||||
rootHandler = NewRootHandler()
|
rootHandler = NewRootHandler()
|
||||||
lspHandler = protocol.Handler{
|
lspHandler = protocol.Handler{
|
||||||
Initialize: initialize,
|
Initialize: initialize,
|
||||||
Initialized: initialized,
|
Initialized: initialized,
|
||||||
Shutdown: shutdown,
|
Shutdown: shutdown,
|
||||||
SetTrace: setTrace,
|
SetTrace: setTrace,
|
||||||
TextDocumentDidOpen: TextDocumentDidOpen,
|
TextDocumentDidOpen: TextDocumentDidOpen,
|
||||||
TextDocumentDidChange: TextDocumentDidChange,
|
TextDocumentDidChange: TextDocumentDidChange,
|
||||||
TextDocumentCompletion: TextDocumentCompletion,
|
TextDocumentCompletion: TextDocumentCompletion,
|
||||||
TextDocumentHover: TextDocumentHover,
|
TextDocumentHover: TextDocumentHover,
|
||||||
TextDocumentDidClose: TextDocumentDidClose,
|
TextDocumentDidClose: TextDocumentDidClose,
|
||||||
TextDocumentCodeAction: TextDocumentCodeAction,
|
TextDocumentCodeAction: TextDocumentCodeAction,
|
||||||
TextDocumentDefinition: TextDocumentDefinition,
|
TextDocumentDefinition: TextDocumentDefinition,
|
||||||
WorkspaceExecuteCommand: WorkspaceExecuteCommand,
|
WorkspaceExecuteCommand: WorkspaceExecuteCommand,
|
||||||
TextDocumentRename: TextDocumentRename,
|
TextDocumentRename: TextDocumentRename,
|
||||||
TextDocumentPrepareRename: TextDocumentPrepareRename,
|
TextDocumentPrepareRename: TextDocumentPrepareRename,
|
||||||
TextDocumentSignatureHelp: TextDocumentSignatureHelp,
|
TextDocumentSignatureHelp: TextDocumentSignatureHelp,
|
||||||
|
TextDocumentRangeFormatting: TextDocumentRangeFormattingFunc,
|
||||||
}
|
}
|
||||||
|
|
||||||
server := server.NewServer(&lspHandler, lsName, false)
|
server := server.NewServer(&lspHandler, lsName, false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user