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

Type parameters

  • T

Hierarchy

  • MonacoWebWorker

Index

Methods

dispose

  • dispose(): void
  • Terminate the web worker, thus invalidating the returned proxy.

    Returns void

getProxy

withSyncedResources

  • withSyncedResources(resources: Uri[]): 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>