fix issue

This commit is contained in:
Megan Rogge
2024-11-18 15:44:05 -05:00
parent 412b2bfcb6
commit fc51efb871

View File

@@ -97,7 +97,8 @@ vscode.window.registerTerminalCompletionProvider({
if (!optionLabel) {
continue;
}
if (optionLabel.startsWith(prefix)) {
if (optionLabel.startsWith(prefix) || (prefix.length > specName.length && prefix.trim() === specName)) {
result.push(createCompletionItem(terminalContext.cursorPosition, prefix, optionLabel, option.description));
}
if (option.args !== undefined) {