From 9e85933d67cfbc950975e4d4b68ee8b6f1b1121c Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Wed, 29 Nov 2023 10:43:24 -0800 Subject: [PATCH] Do not throw if initializing deactivate script fails --- src/client/terminals/envCollectionActivation/service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/terminals/envCollectionActivation/service.ts b/src/client/terminals/envCollectionActivation/service.ts index 68c098c4c928..b9a9fc17b3d5 100644 --- a/src/client/terminals/envCollectionActivation/service.ts +++ b/src/client/terminals/envCollectionActivation/service.ts @@ -243,7 +243,9 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ envVarCollection.description = description; await this.trackTerminalPrompt(shell, resource, env); - await this.terminalDeactivateService.initializeScriptParams(shell); + await this.terminalDeactivateService.initializeScriptParams(shell).catch((ex) => { + traceError(`Failed to initialize deactivate script`, shell, ex); + }); } private isPromptSet = new Map();