@@ -279,28 +279,61 @@ func (handler *INOLanguageServer) InitializeReqFromIDE(ctx context.Context, logg
279279 IncludeText : true ,
280280 },
281281 },
282- HoverProvider : & lsp.HoverOptions {}, // true,
283282 CompletionProvider : & lsp.CompletionOptions {
284- TriggerCharacters : []string {"." , "\u003e " , ":" },
283+ AllCommitCharacters : []string {
284+ " " , "\t " , "(" , ")" , "[" , "]" , "{" , "}" , "<" , ">" ,
285+ ":" , ";" , "," , "+" , "-" , "/" , "*" , "%" , "^" , "&" ,
286+ "#" , "?" , "." , "=" , "\" " , "'" , "|" },
287+ ResolveProvider : false ,
288+ TriggerCharacters : []string { //".", "\u003e", ":"
289+ "." , "<" , ">" , ":" , "\" " , "/" },
285290 },
286291 SignatureHelpProvider : & lsp.SignatureHelpOptions {
287292 TriggerCharacters : []string {"(" , "," },
288293 },
289- DefinitionProvider : & lsp.DefinitionOptions {}, // true,
290- // ReferencesProvider: &lsp.ReferenceOptions{}, // TODO: true
291- DocumentHighlightProvider : & lsp.DocumentHighlightOptions {}, //true,
292- DocumentSymbolProvider : & lsp.DocumentSymbolOptions {}, //true,
293- WorkspaceSymbolProvider : & lsp.WorkspaceSymbolOptions {}, //true,
294+ // ReferencesProvider: &lsp.ReferenceOptions{},
295+ // DeclarationProvider: &lsp.DeclarationRegistrationOptions{},
296+ // DocumentLinkProvider: &lsp.DocumentLinkOptions{ResolveProvider: false},
297+ // ImplementationProvider: &lsp.ImplementationRegistrationOptions{},
298+ // SelectionRangeProvider: &lsp.SelectionRangeRegistrationOptions{},
299+ DefinitionProvider : & lsp.DefinitionOptions {},
300+ DocumentHighlightProvider : & lsp.DocumentHighlightOptions {},
301+ DocumentSymbolProvider : & lsp.DocumentSymbolOptions {},
302+ WorkspaceSymbolProvider : & lsp.WorkspaceSymbolOptions {},
294303 CodeActionProvider : & lsp.CodeActionOptions {ResolveProvider : true },
295- DocumentFormattingProvider : & lsp.DocumentFormattingOptions {}, //true,
296- DocumentRangeFormattingProvider : & lsp.DocumentRangeFormattingOptions {}, //true,
304+ DocumentFormattingProvider : & lsp.DocumentFormattingOptions {},
305+ DocumentRangeFormattingProvider : & lsp.DocumentRangeFormattingOptions {},
306+ HoverProvider : & lsp.HoverOptions {},
297307 DocumentOnTypeFormattingProvider : & lsp.DocumentOnTypeFormattingOptions {
298308 FirstTriggerCharacter : "\n " ,
309+ MoreTriggerCharacter : []string {},
310+ },
311+ RenameProvider : & lsp.RenameOptions {
312+ // PrepareProvider: true,
299313 },
300- RenameProvider : & lsp.RenameOptions {PrepareProvider : false }, // TODO: true
301314 ExecuteCommandProvider : & lsp.ExecuteCommandOptions {
302315 Commands : []string {"clangd.applyFix" , "clangd.applyTweak" },
303316 },
317+ // SemanticTokensProvider: &lsp.SemanticTokensRegistrationOptions{
318+ // SemanticTokensOptions: &lsp.SemanticTokensOptions{
319+ // Full: &lsp.SemantiTokenFullOptions{
320+ // Delta: true,
321+ // },
322+ // Legend: lsp.SemanticTokensLegend{
323+ // TokenModifiers: []string{},
324+ // TokenTypes: []string{
325+ // "variable", "variable", "parameter", "function", "method", "function", "property", "variable",
326+ // "class", "enum", "enumMember", "type", "dependent", "dependent", "namespace", "typeParameter",
327+ // "concept", "type", "macro", "comment",
328+ // },
329+ // },
330+ // Range: false,
331+ // },
332+ // },
333+ },
334+ ServerInfo : & lsp.InitializeResultServerInfo {
335+ Name : "arduino-language-server" ,
336+ Version : "0.5.0-beta" ,
304337 },
305338 }
306339 logger .Logf ("initialization parameters: %s" , string (lsp .EncodeMessage (resp )))
0 commit comments