Skip to content

Terminal suggest: Fine tune kind and icons coming from fig completions #240232

Open
@Tyriar

Description

@Tyriar

Currently the kind assigned to fig items is a little simple:

if (parsedArguments.suggestionFlags & SuggestionFlag.Args) {
await addSuggestions(parsedArguments.currentArg?.suggestions, vscode.TerminalCompletionItemKind.Argument, parsedArguments);
}
if (parsedArguments.suggestionFlags & SuggestionFlag.Subcommands) {
await addSuggestions(parsedArguments.completionObj.subcommands, vscode.TerminalCompletionItemKind.Method);
}
if (parsedArguments.suggestionFlags & SuggestionFlag.Options) {
await addSuggestions(parsedArguments.completionObj.options, vscode.TerminalCompletionItemKind.Flag);
}

Here are some things we want to achieve:

We might need to explore an upstream change to the fig spec to indicate a generic kind for the completion, rather than just an icon.

Related: #239706

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions