Skip to content

Commit 7d325e3

Browse files
author
Dave Bartolomeo
committed
Fix file-watching bug in QLTest discovery
1 parent cbe3c05 commit 7d325e3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

extensions/ql-vscode/src/qltest-discovery.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export class QLTestDiscovery extends Discovery<QLTestDiscoveryResults> {
152152
super();
153153

154154
this.push(this.qlPackDiscovery.onDidChangeQLPacks(this.handleDidChangeQLPacks, this));
155+
this.push(this.watcher.onDidChange(this.handleDidChange, this));
155156

156157
this.refresh();
157158
}
@@ -170,6 +171,10 @@ export class QLTestDiscovery extends Discovery<QLTestDiscoveryResults> {
170171
this.refresh();
171172
}
172173

174+
private handleDidChange(uri: Uri): void {
175+
this.refresh();
176+
}
177+
173178
protected async discover(): Promise<QLTestDiscoveryResults> {
174179
const testDirectories: QLTestDirectory[] = [];
175180
const watchPaths: string[] = [];

0 commit comments

Comments
 (0)