Add more logging before attempting to open tutorial workspace

This commit is contained in:
Elena Tanasoiu
2023-03-21 09:56:23 +00:00
parent 0f4fcdf676
commit 7059802a25
2 changed files with 4 additions and 1 deletions

View File

@@ -348,7 +348,7 @@ export async function activate(
try {
await prepareCodeTour();
} catch (e: unknown) {
console.log(
void extLogger.log(
`Could not open tutorial workspace automatically: ${getErrorMessage(e)}`,
);
}

View File

@@ -296,6 +296,9 @@ export async function prepareCodeTour(): Promise<void> {
!isCodespacesTemplate()
) {
const tutorialWorkspaceUri = Uri.parse(tutorialWorkspacePath);
void extLogger.log(
`In prepareCodeTour() method, going to open the tutorial workspace file: ${tutorialWorkspacePath}`,
);
await commands.executeCommand("vscode.openFolder", tutorialWorkspaceUri);
}
}