mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Check for watched directories before clearing map (#44947)
This commit is contained in:
@@ -2288,8 +2288,10 @@ namespace ts.server {
|
||||
// If any of the project is still watching wild cards dont close the watcher
|
||||
if (forEachEntry(configFileExistenceInfo.config.projects, identity)) return;
|
||||
|
||||
clearMap(configFileExistenceInfo.config.watchedDirectories!, closeFileWatcherOf);
|
||||
configFileExistenceInfo.config.watchedDirectories = undefined;
|
||||
if (configFileExistenceInfo.config.watchedDirectories) {
|
||||
clearMap(configFileExistenceInfo.config.watchedDirectories, closeFileWatcherOf);
|
||||
configFileExistenceInfo.config.watchedDirectories = undefined;
|
||||
}
|
||||
configFileExistenceInfo.config.watchedDirectoriesStale = undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user