#212 - Added deleted folder watcher

This commit is contained in:
Elio Struyf
2021-12-26 20:29:44 +01:00
parent 2f13c335ed
commit c5b7b7845d
+1
View File
@@ -41,6 +41,7 @@ export class PagesListener extends BaseListener {
const folderUri = Uri.parse(folder.path);
let watcher = workspace.createFileSystemWatcher(new RelativePattern(folderUri, "*"));
watcher.onDidCreate(async (uri: Uri) => this.getPagesData);
watcher.onDidDelete(async (uri: Uri) => this.getPagesData);
this.watchers[folderUri.fsPath] = watcher;
}
}