Skip to content

Commit 03cbd01

Browse files
authored
fix terminal suggest bug related to aliases (microsoft#254482)
fix microsoft#254457
1 parent 4318ad2 commit 03cbd01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/terminal-suggest/src/fig/figInterface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export async function getFigSuggestions(
8383
: availableCommands.filter(command => specLabel === (command.definitionCommand ?? (typeof command.label === 'string' ? command.label : command.label.label))));
8484
if (
8585
!(osIsWindows()
86-
? commandAndAliases.some(e => currentCommand.startsWith(removeAnyFileExtension((typeof e.label === 'string' ? e.label : e.label.label))))
87-
: commandAndAliases.some(e => currentCommand.startsWith(typeof e.label === 'string' ? e.label : e.label.label)))
86+
? commandAndAliases.some(e => currentCommand === (removeAnyFileExtension((typeof e.label === 'string' ? e.label : e.label.label))))
87+
: commandAndAliases.some(e => currentCommand === (typeof e.label === 'string' ? e.label : e.label.label)))
8888
) {
8989
continue;
9090
}

0 commit comments

Comments
 (0)