We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2741827 + 686a9e4 commit fbe782fCopy full SHA for fbe782f
extensions/ql-vscode/src/extension.ts
@@ -707,9 +707,14 @@ async function activateWithInstalledDistribution(
707
for (const glob of PACK_GLOBS) {
708
const fsWatcher = workspace.createFileSystemWatcher(glob);
709
ctx.subscriptions.push(fsWatcher);
710
- fsWatcher.onDidChange(async (_uri) => {
+
711
+ const clearPackCache = async (_uri: Uri) => {
712
await qs.clearPackCache();
- });
713
+ };
714
715
+ fsWatcher.onDidCreate(clearPackCache);
716
+ fsWatcher.onDidChange(clearPackCache);
717
+ fsWatcher.onDidDelete(clearPackCache);
718
}
719
720
void extLogger.log("Initializing database manager.");
0 commit comments