@@ -432,8 +432,14 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, logger stre
432
432
433
433
returnCB (lsp .EncodeMessage (& lsp.InitializeResult {
434
434
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,
437
443
CompletionProvider : & lsp.CompletionOptions {
438
444
TriggerCharacters : []string {"." , "\u003e " , ":" },
439
445
},
@@ -1833,10 +1839,8 @@ func (handler *InoHandler) HandleNotificationFromClangd(ctx context.Context, log
1833
1839
}
1834
1840
1835
1841
// Default to read lock
1836
- logger ("(queued)" )
1837
1842
handler .readLock (logger , false )
1838
1843
defer handler .readUnlock (logger )
1839
- logger ("(running)" )
1840
1844
1841
1845
switch p := params .(type ) {
1842
1846
case * lsp.PublishDiagnosticsParams :
@@ -1916,10 +1920,8 @@ func (handler *InoHandler) HandleRequestFromClangd(ctx context.Context, logger s
1916
1920
}
1917
1921
1918
1922
// Default to read lock
1919
- logger ("(queued)" )
1920
1923
handler .readLock (logger , false )
1921
1924
defer handler .readUnlock (logger )
1922
- logger ("(running)" )
1923
1925
1924
1926
switch p := params .(type ) {
1925
1927
case * lsp.ApplyWorkspaceEditParams :
0 commit comments