Interface MonacoWebWorker<T>

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

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

Type Parameters

  • T

Methods

  • Terminate the web worker, thus invalidating the returned proxy.

    Returns void

  • Get a proxy to the arbitrary loaded code.

    Returns Promise<T>

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

    Parameters

    • resources: Uri[]

    Returns Promise<T>