Skip to content

Commit ccc7041

Browse files
committed
Added create watcher
1 parent 56bc440 commit ccc7041

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/completion.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
5151
const key = uri.toString();
5252

5353
if (!this.watchers.has(key)) {
54-
const watcher = workspace.createFileSystemWatcher(uri.fsPath, true);
54+
const watcher = workspace.createFileSystemWatcher(uri.fsPath);
5555

56+
watcher.onDidCreate(listener);
5657
watcher.onDidChange(listener);
5758
watcher.onDidDelete(listener);
5859

0 commit comments

Comments
 (0)