diff --git a/packages/vscode/src/dialog.ts b/packages/vscode/src/dialog.ts index 734626cb..4ec06306 100644 --- a/packages/vscode/src/dialog.ts +++ b/packages/vscode/src/dialog.ts @@ -404,7 +404,7 @@ class Dialog { */ private async list(directory: string): Promise> { const paths = (await util.promisify(fs.readdir)(directory)).sort(); - const stats = await Promise.all(paths.map(p => util.promisify(fs.stat)(path.join(directory, p)))); + const stats = await Promise.all(paths.map(p => util.promisify(fs.lstat)(path.join(directory, p)))); return stats.map((stat, index): DialogEntry => ({ fullPath: path.join(directory, paths[index]),