Skip to content

Commit

Permalink
fix: reload triggering on wrong files (#229)
Browse files Browse the repository at this point in the history
Fix extension being activated on wrong files. (216#issuecomment-899222455)
  • Loading branch information
IgnisDa authored Aug 16, 2021
1 parent 0a8e526 commit c09aaf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export default class Extension {
}

watch() {
const watcher = workspace.createFileSystemWatcher(`**/${this.pattern}`);
const watcher = workspace.createFileSystemWatcher(`${this.pattern}`);

// Changes configuration should invalidate above cache
watcher.onDidChange((e) => {
Log.info(`Config File: ${e.fsPath} Changed, Reloading...`);
Expand Down

0 comments on commit c09aaf3

Please sign in to comment.