Skip to content

Commit 1bf794a

Browse files
authored
change condition for adding terminal completion executables (microsoft#235994)
fix microsoft#235082
1 parent 868a931 commit 1bf794a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/terminal-suggest/src/terminalSuggestMain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async function getCommandsInPath(): Promise<Set<string> | undefined> {
187187
const files = await vscode.workspace.fs.readDirectory(vscode.Uri.file(path));
188188

189189
for (const [file, fileType] of files) {
190-
if (fileType === vscode.FileType.File || fileType === vscode.FileType.SymbolicLink) {
190+
if (fileType !== vscode.FileType.Unknown && fileType !== vscode.FileType.Directory) {
191191
executables.add(file);
192192
}
193193
}

0 commit comments

Comments
 (0)