Skip to content

Commit 7059802

Browse files
committed
Add more logging before attempting to open tutorial workspace
1 parent 0f4fcdf commit 7059802

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

extensions/ql-vscode/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export async function activate(
348348
try {
349349
await prepareCodeTour();
350350
} catch (e: unknown) {
351-
console.log(
351+
void extLogger.log(
352352
`Could not open tutorial workspace automatically: ${getErrorMessage(e)}`,
353353
);
354354
}

extensions/ql-vscode/src/helpers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ export async function prepareCodeTour(): Promise<void> {
296296
!isCodespacesTemplate()
297297
) {
298298
const tutorialWorkspaceUri = Uri.parse(tutorialWorkspacePath);
299+
void extLogger.log(
300+
`In prepareCodeTour() method, going to open the tutorial workspace file: ${tutorialWorkspacePath}`,
301+
);
299302
await commands.executeCommand("vscode.openFolder", tutorialWorkspaceUri);
300303
}
301304
}

0 commit comments

Comments
 (0)