Skip to content

Commit b96cd6c

Browse files
authored
Merge pull request #3635 from github/kaspersv/clear-pkg-cache-on-dbscheme-changes
Clear query server package cache on dbscheme edits
2 parents 7f6c1ad + b466d2a commit b96cd6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extensions/ql-vscode/src/extension.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -717,12 +717,13 @@ async function installOrUpdateThenTryActivate(
717717
return undefined;
718718
}
719719

720-
const PACK_GLOBS = [
720+
const CLEAR_PACK_CACHE_ON_EDIT_GLOBS = [
721721
"**/codeql-pack.yml",
722722
"**/qlpack.yml",
723723
"**/queries.xml",
724724
"**/codeql-pack.lock.yml",
725725
"**/qlpack.lock.yml",
726+
"**/*.dbscheme",
726727
".codeqlmanifest.json",
727728
"codeql-workspace.yml",
728729
];
@@ -769,7 +770,7 @@ async function activateWithInstalledDistribution(
769770
ctx,
770771
);
771772

772-
for (const glob of PACK_GLOBS) {
773+
for (const glob of CLEAR_PACK_CACHE_ON_EDIT_GLOBS) {
773774
const fsWatcher = workspace.createFileSystemWatcher(glob);
774775
ctx.subscriptions.push(fsWatcher);
775776

0 commit comments

Comments
 (0)