File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
extensions/terminal-suggest/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,9 @@ export async function getCompletionItemsFromSpecs(
280280 const labels = new Set ( items . map ( ( i ) => typeof i . label === 'string' ? i . label : i . label . label ) ) ;
281281 for ( const command of availableCommands ) {
282282 const commandTextLabel = typeof command . label === 'string' ? command . label : command . label . label ;
283- if ( ! labels . has ( commandTextLabel ) ) {
283+ // Remove any file extension for matching on Windows
284+ const labelWithoutExtension = isWindows ? commandTextLabel . replace ( / \. [ ^ ] + $ / , '' ) : commandTextLabel ;
285+ if ( ! labels . has ( labelWithoutExtension ) ) {
284286 items . push ( createCompletionItem (
285287 terminalContext . cursorPosition ,
286288 currentCommandString ,
You can’t perform that action at this time.
0 commit comments