File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/common/vscode Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import { MultiFileSystemWatcher } from "./multi-file-system-watcher" ;
1010import { AppEventEmitter } from "../events" ;
1111import { extLogger } from ".." ;
12- import { exists , lstat } from "fs-extra" ;
12+ import { lstat , pathExists } from "fs-extra" ;
1313import { containsPath } from "../../pure/files" ;
1414import { getOnDiskWorkspaceFoldersObjects } from "./workspace-folders" ;
1515
@@ -140,7 +140,7 @@ export abstract class FilePathDiscovery<T extends PathData> extends Discovery {
140140 }
141141
142142 private async handledChangedPath ( path : string ) : Promise < boolean > {
143- if ( ! ( await exists ( path ) ) || ! this . pathIsInWorkspace ( path ) ) {
143+ if ( ! ( await pathExists ( path ) ) || ! this . pathIsInWorkspace ( path ) ) {
144144 return this . handleRemovedPath ( path ) ;
145145 }
146146 if ( ( await lstat ( path ) ) . isDirectory ( ) ) {
You can’t perform that action at this time.
0 commit comments