lsp初始化时的日志没有包括trigger characters的信息
[Trace - 11:34:49 PM] Received response 'initialize - (40)' in 255ms.
Result: {
"capabilities": {
"callHierarchyProvider": true,
"colorProvider": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
},
"documentHighlightProvider": true,
"documentSymbolProvider": true,
"executeCommandProvider": {
"commands": [
"edit.sortMembers",
"edit.organizeImports",
"edit.fixAll",
"edit.sendWorkspaceEdit",
"refactor.perform",
"refactor.validate",
"dart.logAction",
"dart.refactor.convert_all_formal_parameters_to_named",
"dart.refactor.convert_selected_formal_parameters_to_named",
"dart.refactor.move_selected_formal_parameters_left",
"dart.refactor.move_top_level_to_file"
],
"workDoneProgress": true
},
"inlayHintProvider": {
"resolveProvider": null
},
"semanticTokensProvider": {
"full": {
"delta": null
},
"legend": {
"tokenModifiers": [
"documentation",
"constructor",
"declaration",
"importPrefix",
"instance",
"static",
"escape",
"annotation",
"control",
"label",
"interpolation",
"void"
],
"tokenTypes": [
"annotation",
"keyword",
"class",
"comment",
"method",
"variable",
"parameter",
"enum",
"enumMember",
"type",
"source",
"property",
"namespace",
"boolean",
"number",
"string",
"function",
"typeParameter"
]
},
"range": true
},
"textDocumentSync": {
"change": 2,
"openClose": true,
"willSave": null,
"willSaveWaitUntil": null
},
"workspace": {
"fileOperations": {
"willRename": {
"filters": [
{
"pattern": {
"glob": "**/*.dart",
"matches": "file"
},
"scheme": "file"
},
{
"pattern": {
"glob": "**/",
"matches": "folder"
},
"scheme": "file"
}
]
}
},
"workspaceFolders": {
"changeNotifications": true,
"supported": true
}
},
"workspaceSymbolProvider": true
},
"serverInfo": {
"name": "Dart SDK LSP Analysis Server",
"version": "3.1.4"
}
}
但看后面一些内容有,但不清楚是做什么的了
[Trace - 11:34:49 PM] Received request 'client/registerCapability - (2).
Params: {
"registrations": [
{
"id": "0",
"method": "textDocument/completion",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
],
"resolveProvider": true,
"triggerCharacters": [
".",
"=",
"(",
"$",
"\"",
"'",
"{",
"/",
":"
]
}
},
{
"id": "1",
"method": "textDocument/completion",
"registerOptions": {
"documentSelector": [
{
"language": "yaml",
"pattern": "**/pubspec.yaml",
"scheme": "file"
},
{
"language": "yaml",
"pattern": "**/analysis_options.yaml",
"scheme": "file"
},
{
"language": "yaml",
"pattern": "**/lib/{fix_data.yaml,fix_data/**.yaml}",
"scheme": "file"
}
],
"resolveProvider": true
}
},
{
"id": "2",
"method": "textDocument/hover",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "3",
"method": "textDocument/signatureHelp",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
],
"retriggerCharacters": [
","
],
"triggerCharacters": [
"("
]
}
},
{
"id": "4",
"method": "textDocument/references",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "5",
"method": "textDocument/formatting",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "6",
"method": "textDocument/onTypeFormatting",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
],
"firstTriggerCharacter": "}",
"moreTriggerCharacter": [
";"
]
}
},
{
"id": "7",
"method": "textDocument/rangeFormatting",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "8",
"method": "textDocument/definition",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "9",
"method": "textDocument/typeDefinition",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "10",
"method": "textDocument/implementation",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "11",
"method": "textDocument/codeAction",
"registerOptions": {
"codeActionKinds": [
"source",
"source.organizeImports",
"source.fixAll",
"source.sortMembers",
"quickfix",
"refactor"
],
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "12",
"method": "textDocument/rename",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
],
"prepareProvider": true
}
},
{
"id": "13",
"method": "textDocument/foldingRange",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "14",
"method": "textDocument/selectionRange",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "15",
"method": "textDocument/prepareTypeHierarchy",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
}
]
}