update tcl standard
This commit is contained in:
@@ -11,6 +11,7 @@ KIND_MAP = {
|
||||
"field": lsp.CompletionItemKind.Field,
|
||||
"module": lsp.CompletionItemKind.Module,
|
||||
"namespace": lsp.CompletionItemKind.Class,
|
||||
"keyword": lsp.CompletionItemKind.Keyword,
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +42,10 @@ class StandardCompletionItems:
|
||||
items = []
|
||||
for i in data.get("tcl", []):
|
||||
items.append(
|
||||
lsp.CompletionItem(label=i, kind=lsp.CompletionItemKind.Keyword)
|
||||
lsp.CompletionItem(
|
||||
label=i.get("label", ""),
|
||||
kind=KIND_MAP.get(i.get("kind", ""), lsp.CompletionItemKind.Text),
|
||||
)
|
||||
)
|
||||
return items
|
||||
|
||||
|
||||
Reference in New Issue
Block a user