mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
fix issue
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user