Skip to content

Commit dc0ed96

Browse files
authored
Perf improve to load time of extension (microsoft#10095)
* Ensure we do not wait for terminal to get activated * News entry
1 parent 97b1c7a commit dc0ed96

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

news/2 Fixes/10094.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Do not delay activation of extension by waiting for terminal to get activated.

src/client/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async function activateUnsafe(context: ExtensionContext): Promise<IExtensionApi>
192192
context.subscriptions.push(new ReplProvider(serviceContainer));
193193

194194
const terminalProvider = new TerminalProvider(serviceContainer);
195-
await terminalProvider.initialize(window.activeTerminal);
195+
terminalProvider.initialize(window.activeTerminal).ignoreErrors();
196196
context.subscriptions.push(terminalProvider);
197197

198198
context.subscriptions.push(

0 commit comments

Comments
 (0)