We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f53a17 commit a4ba348Copy full SHA for a4ba348
server/plugins/watch.ts
@@ -25,9 +25,11 @@ export default class Watch {
25
}
26
27
onContentChange(changes: FileWatchEvent[]) {
28
- for (const change of changes)
+ for (const change of changes) {
29
+ const path = pathutil.join(this.config.root, change.path);
30
if (change.type === LSP.FileChangeType.Deleted)
- this.services.Scanner.delete(change.path);
31
- else this.services.Scanner.update(change.path);
+ this.services.Scanner.delete(path);
32
+ else this.services.Scanner.update(path);
33
+ }
34
35
0 commit comments