Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert bad change #194888

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/vs/workbench/api/worker/extensionHostWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import * as performance from 'vs/base/common/performance';

import 'vs/workbench/api/common/extHost.common.services';
import 'vs/workbench/api/worker/extHost.worker.services';
import { FileAccess, Schemas, VSCODE_AUTHORITY } from 'vs/base/common/network';
import { FileAccess } from 'vs/base/common/network';
import { URI } from 'vs/base/common/uri';

//#region --- Define, capture, and override some globals
Expand Down Expand Up @@ -109,7 +109,7 @@ if ((<any>self).Worker) {
const bootstrapFnSource = (function bootstrapFn(workerUrl: string) {
function asWorkerBrowserUrl(url: string | URL | TrustedScriptURL): any {
if (typeof url === 'string' || url instanceof URL) {
return String(url).replace(/^file:\/\//i, `${Schemas.vscodeFileResource}://${VSCODE_AUTHORITY}`);
return String(url).replace(/^file:\/\//i, 'vscode-file://vscode-app');
}
return url;
}
Expand Down