Skip to content

Commit 5a0c413

Browse files
committed
Flip default value of __uniqueWebWorkerExtensionHostOrigin to true (microsoft#134234)
1 parent 1bb8780 commit 5a0c413

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ export class WebWorkerExtensionHost extends Disposable implements IExtensionHost
9393

9494
const forceHTTPS = (location.protocol === 'https:');
9595

96-
if (this._environmentService.options && this._environmentService.options.__uniqueWebWorkerExtensionHostOrigin) {
96+
let uniqueWebWorkerExtensionHostOrigin = true;
97+
if (this._environmentService.options && typeof this._environmentService.options.__uniqueWebWorkerExtensionHostOrigin !== 'undefined') {
98+
uniqueWebWorkerExtensionHostOrigin = this._environmentService.options.__uniqueWebWorkerExtensionHostOrigin;
99+
}
100+
if (uniqueWebWorkerExtensionHostOrigin) {
97101
const webEndpointUrlTemplate = this._productService.webEndpointUrlTemplate;
98102
const commit = this._productService.commit;
99103
const quality = this._productService.quality;

src/vs/workbench/workbench.web.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ interface IWorkbenchConstructionOptions {
366366
/**
367367
* [TEMPORARY]: This will be removed soon.
368368
* Use an unique origin for the web worker extension host.
369-
* Defaults to false.
369+
* Defaults to true.
370370
*/
371371
readonly __uniqueWebWorkerExtensionHostOrigin?: boolean;
372372

0 commit comments

Comments
 (0)