Interface MonacoWebWorker<T>

Expand description

A web worker that can provide a proxy to an arbitrary file.

interface MonacoWebWorker<T> {
    dispose(): void;
    getProxy(): Promise<T>;
    withSyncedResources(resources: Uri[]): Promise<T>;
}

Methods§

§

dispose(): void

Terminate the web worker, thus invalidating the returned proxy.

§

getProxy(): Promise<T>

Get a proxy to the arbitrary loaded code.

§

withSyncedResources(resources: Uri[]): Promise<T>

Synchronize (send) the models at resources to the web worker, making them available in the monaco.worker.getMirrorModels().