Skip to content

Commit 2942241

Browse files
committed
Update fileWatcher.ts
1 parent e6b71b7 commit 2942241

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/support/fileWatcher.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,8 @@ export const registerWatcher = (watcher: vscode.FileSystemWatcher) => {
175175
export const disposeWatchers = () => {
176176
watchers.forEach((watcher) => watcher.dispose());
177177
watchers = [];
178+
179+
for (const pattern in patternWatchers) {
180+
delete patternWatchers[pattern];
181+
}
178182
};

0 commit comments

Comments
 (0)