mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Do not suggest dot files in html/css. Fix #46780
This commit is contained in:
@@ -78,11 +78,12 @@ function providePaths(valueBeforeCursor: string, activeDocFsPath: string, root?:
|
||||
}
|
||||
|
||||
try {
|
||||
return fs.readdirSync(parentDir).map(f => {
|
||||
const paths = fs.readdirSync(parentDir).map(f => {
|
||||
return isDir(path.resolve(parentDir, f))
|
||||
? f + '/'
|
||||
: f;
|
||||
});
|
||||
return paths.filter(p => p[0] !== '.');
|
||||
} catch (e) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user