Add more logging before attempting to open tutorial workspace
This commit is contained in:
@@ -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)}`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user