mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-07 09:23:00 +02:00
#212 - Added deleted folder watcher
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user