Skip to content

Commit b465f0b

Browse files
authored
Do not auto start the local web worker extension host (microsoft#184137)
1 parent cfa6986 commit b465f0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vs/workbench/services/extensions/browser/extensionService.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,12 @@ class BrowserExtensionHostFactory implements IExtensionHostFactory {
228228
return null;
229229
}
230230
case ExtensionHostKind.LocalWebWorker: {
231-
return this._instantiationService.createInstance(WebWorkerExtensionHost, runningLocation, ExtensionHostStartup.EagerAutoStart, this._createLocalExtensionHostDataProvider(runningLocations, runningLocation, isInitialStart));
231+
const startup = (
232+
isInitialStart
233+
? ExtensionHostStartup.EagerManualStart
234+
: ExtensionHostStartup.EagerAutoStart
235+
);
236+
return this._instantiationService.createInstance(WebWorkerExtensionHost, runningLocation, startup, this._createLocalExtensionHostDataProvider(runningLocations, runningLocation, isInitialStart));
232237
}
233238
case ExtensionHostKind.Remote: {
234239
const remoteAgentConnection = this._remoteAgentService.getConnection();

0 commit comments

Comments
 (0)