Skip to content

Commit 108943d

Browse files
committed
existsSync -> pathExists
Use async version of file check.
1 parent c1a515e commit 108943d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extensions/ql-vscode/src/helpers.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
ensureDir,
66
writeFile,
77
opendir,
8-
existsSync,
98
} from "fs-extra";
109
import { promise as glob } from "glob-promise";
1110
import { load } from "js-yaml";
@@ -291,8 +290,8 @@ export async function prepareCodeTour(): Promise<void> {
291290
* the prompt to open the workspace)
292291
*/
293292
if (
294-
existsSync(tutorialWorkspacePath) &&
295-
existsSync(toursFolderPath) &&
293+
(await pathExists(tutorialWorkspacePath)) &&
294+
(await pathExists(toursFolderPath)) &&
296295
!isCodespacesTemplate()
297296
) {
298297
const answer = await showBinaryChoiceDialog(

0 commit comments

Comments
 (0)