Skip to content

Commit ddf2abf

Browse files
committed
Don't use unhandle rejection listener in codespace
This was implemented here: [1]. It is throwing up a lot of `Unhandled error: Invalid arguments` errors without any way to see a stack trace for them. Since we're not able to debug this from the codespace, I'm choosing to turn it off in the codespace template as it's preventing us from running the Code Tour successfully.
1 parent 35a8d36 commit ddf2abf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {
3737
CliConfigListener,
3838
DistributionConfigListener,
3939
isCanary,
40+
isCodespacesTemplate,
4041
joinOrderWarningThreshold,
4142
MAX_QUERIES,
4243
QueryHistoryConfigListener,
@@ -234,7 +235,10 @@ export async function activate(
234235
const distributionConfigListener = new DistributionConfigListener();
235236
await initializeLogging(ctx);
236237
await initializeTelemetry(extension, ctx);
237-
addUnhandledRejectionListener();
238+
if (!isCodespacesTemplate()) {
239+
addUnhandledRejectionListener();
240+
}
241+
238242
install();
239243

240244
const codelensProvider = new QuickEvalCodeLensProvider();

0 commit comments

Comments
 (0)