Skip to content

Commit 5444a9e

Browse files
committed
Fail gracefully if we can't set up code tour
We're running this at the extension start-up. We don't want it to block the extension from completing activation, so let's swallow any errors from the code tour and output them, instead of letting this affect the rest of the extension activation.
1 parent 4fa3c45 commit 5444a9e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,13 @@ export async function activate(
345345
codeQlExtension.variantAnalysisManager,
346346
);
347347

348-
await prepareCodeTour();
348+
try {
349+
await prepareCodeTour();
350+
} catch (e: unknown) {
351+
console.log(
352+
`Could not open tutorial workspace automatically: ${getErrorMessage(e)}`,
353+
);
354+
}
349355

350356
return codeQlExtension;
351357
}

0 commit comments

Comments
 (0)