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.
This commit is contained in:
Elena Tanasoiu
2023-03-20 15:01:04 +00:00
parent 4fa3c459a1
commit 5444a9e55e

View File

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