Skip to content

Commit 7605817

Browse files
authored
fix: createFileSystemWatcher takes RelativePattern object (#281)
Watcher does not fire on config file change because of RelativePattern object to string conversion
1 parent ccc6321 commit 7605817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default class Extension {
9797
}
9898

9999
watch() {
100-
const watcher = workspace.createFileSystemWatcher(`${this.pattern}`);
100+
const watcher = workspace.createFileSystemWatcher(this.pattern);
101101

102102
// Changes configuration should invalidate above cache
103103
watcher.onDidChange((e) => {

0 commit comments

Comments
 (0)