We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75aa73e commit 6971c83Copy full SHA for 6971c83
packages/langium/src/lsp/completion/completion-provider.ts
@@ -472,12 +472,16 @@ export class DefaultCompletionProvider implements CompletionProvider {
472
}
473
acceptor(context, {
474
label: keyword.value,
475
- kind: CompletionItemKind.Keyword,
+ kind: this.getKeywordCompletionItemKind(keyword),
476
detail: 'Keyword',
477
sortText: '1'
478
});
479
480
481
+ protected getKeywordCompletionItemKind(_keyword: ast.Keyword): CompletionItemKind {
482
+ return CompletionItemKind.Keyword;
483
+ }
484
+
485
protected filterKeyword(context: CompletionContext, keyword: ast.Keyword): boolean {
486
// Filter out keywords that do not contain any word character
487
return /\p{L}/u.test(keyword.value);
0 commit comments