From fc51efb871bf7eaf850b7c7aefb8aba5d9e0622a Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Mon, 18 Nov 2024 15:44:05 -0500 Subject: [PATCH] fix issue --- extensions/terminal-suggest/src/terminalSuggestMain.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/terminal-suggest/src/terminalSuggestMain.ts b/extensions/terminal-suggest/src/terminalSuggestMain.ts index aa2f00a2ebc..0f99e7c0d82 100644 --- a/extensions/terminal-suggest/src/terminalSuggestMain.ts +++ b/extensions/terminal-suggest/src/terminalSuggestMain.ts @@ -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) {