Ignore wild card directory watchers with node_modules file or folder starting with .

This commit is contained in:
Sheetal Nandi committed 2018-10-30 11:06:13 -07:00
1 parent d32c1b091a
commit c9fadf1f46
5 files changed
+92 -27

No files matched your search

+1
View File
@@ -962,6 +962,7 @@ namespace ts.server {
fileOrDirectory => {
const fileOrDirectoryPath = this.toPath(fileOrDirectory);
project.getCachedDirectoryStructureHost().addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);
if (isPathInNodeModulesStartingWithDot(fileOrDirectoryPath)) return;
const configFilename = project.getConfigFilePath();
// If the the added or created file or directory is not supported file name, ignore the file