sussudio
Version:
An unofficial VS Code Internal API
14 lines (13 loc) • 860 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IWorker, IWorkerCallback, IWorkerFactory } from "../common/worker/simpleWorker.mjs";
export declare function getWorkerBootstrapUrl(scriptPath: string, label: string): string;
export declare class DefaultWorkerFactory implements IWorkerFactory {
private static LAST_WORKER_ID;
private _label;
private _webWorkerFailedBeforeError;
constructor(label: string | undefined);
create(moduleId: string, onMessageCallback: IWorkerCallback, onErrorCallback: (err: any) => void): IWorker;
}