Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vs/editor/browser/services/editorWorkerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class EditorWorkerService extends Disposable implements IEditorWorkerServ

const workerDescriptor = new WebWorkerDescriptor({
esmModuleLocation: () => FileAccess.asBrowserUri('vs/editor/common/services/editorWebWorkerMain.js'),
esmModuleLocationBundler: () => new URL('../../common/services/editorWebWorkerMain.ts?workerModule', import.meta.url),
esmModuleLocationBundler: () => new URL('../../common/services/editorWebWorkerMain.ts?esm', import.meta.url),
label: 'editorWorkerService'
});

Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/webWorker/browser/webWorkerDescriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class WebWorkerDescriptor {
constructor(args: {
/** The location of the esm module after transpilation */
esmModuleLocation?: URI | (() => URI);
/** The location of the esm module when used in a bundler environment. Refer to the typescript file in the src folder and use `?workerModule`. */
/** The location of the esm module when used in a bundler environment. Refer to the typescript file in the src folder and use `?esm`. */
esmModuleLocationBundler?: URL | (() => URL);
label: string;
}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,5 +354,5 @@ export class WebWorkerExtensionHost extends Disposable implements IExtensionHost
const extensionHostWorkerMainDescriptor = new WebWorkerDescriptor({
label: 'extensionHostWorkerMain',
esmModuleLocation: () => FileAccess.asBrowserUri('vs/workbench/api/worker/extensionHostWorkerMain.js'),
esmModuleLocationBundler: () => new URL('../../../api/worker/extensionHostWorkerMain.ts?workerModule', import.meta.url),
esmModuleLocationBundler: () => new URL('../../../api/worker/extensionHostWorkerMain.ts?esm', import.meta.url),
});
Loading