Skip to content

Commit

Permalink
tag modules as components in completions
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNolte committed Nov 5, 2024
1 parent 36ffaeb commit 76944f9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/analysis/CtagsServerComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
}
}
Expand Down

0 comments on commit 76944f9

Please sign in to comment.