Skip to content

Commit ce6a21c

Browse files
Use pathExists instead of exists
1 parent fce27d0 commit ce6a21c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/ql-vscode/src/common/vscode/file-path-discovery.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
import { MultiFileSystemWatcher } from "./multi-file-system-watcher";
1010
import { AppEventEmitter } from "../events";
1111
import { extLogger } from "..";
12-
import { exists, lstat } from "fs-extra";
12+
import { lstat, pathExists } from "fs-extra";
1313
import { containsPath } from "../../pure/files";
1414
import { 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()) {

0 commit comments

Comments
 (0)