From 76944f9b9c212dc169711d983ff5cb09bb563e2c Mon Sep 17 00:00:00 2001 From: Andrew Nolte Date: Mon, 4 Nov 2024 20:09:40 -0500 Subject: [PATCH] tag modules as components in completions --- src/analysis/CtagsServerComponent.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/analysis/CtagsServerComponent.ts b/src/analysis/CtagsServerComponent.ts index e8a9883..f610dc2 100644 --- a/src/analysis/CtagsServerComponent.ts +++ b/src/analysis/CtagsServerComponent.ts @@ -230,9 +230,14 @@ export class CtagsServerComponent symbols = symbols.filter((sym) => sym.isData()) } else if (context.triggerCharacter === undefined) { for (let name of ext.index.moduleMap.keys()) { - // The 'kind' just affects the icon additionalCompletions.push( - new vscode.CompletionItem(name, vscode.CompletionItemKind.Module) + new vscode.CompletionItem( + { + label: name, + detail: ' Component', // would need to open files to determin module/interface/package + }, + vscode.CompletionItemKind.Module + ) ) } }