@@ -432,8 +432,14 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, logger stre
432432
433433 returnCB (lsp .EncodeMessage (& lsp.InitializeResult {
434434 Capabilities : lsp.ServerCapabilities {
435- TextDocumentSync : & lsp.TextDocumentSyncOptions {}, //{Kind: &lsp.TDSKIncremental},
436- HoverProvider : & lsp.HoverOptions {}, // true,
435+ TextDocumentSync : & lsp.TextDocumentSyncOptions {
436+ OpenClose : true ,
437+ Change : lsp .TextDocumentSyncKindIncremental ,
438+ Save : & lsp.SaveOptions {
439+ IncludeText : true ,
440+ },
441+ },
442+ HoverProvider : & lsp.HoverOptions {}, // true,
437443 CompletionProvider : & lsp.CompletionOptions {
438444 TriggerCharacters : []string {"." , "\u003e " , ":" },
439445 },
@@ -1833,10 +1839,8 @@ func (handler *InoHandler) HandleNotificationFromClangd(ctx context.Context, log
18331839 }
18341840
18351841 // Default to read lock
1836- logger ("(queued)" )
18371842 handler .readLock (logger , false )
18381843 defer handler .readUnlock (logger )
1839- logger ("(running)" )
18401844
18411845 switch p := params .(type ) {
18421846 case * lsp.PublishDiagnosticsParams :
@@ -1916,10 +1920,8 @@ func (handler *InoHandler) HandleRequestFromClangd(ctx context.Context, logger s
19161920 }
19171921
19181922 // Default to read lock
1919- logger ("(queued)" )
19201923 handler .readLock (logger , false )
19211924 defer handler .readUnlock (logger )
1922- logger ("(running)" )
19231925
19241926 switch p := params .(type ) {
19251927 case * lsp.ApplyWorkspaceEditParams :
0 commit comments