Skip to content

worker

原文链接

https://microsoft.github.io/monaco-editor/docs.html#modules/worker.html

IMirrorModel

ts
interface IMirrorModel {
    uri: Uri;
    version: number;
    getValue(): string;
}

IMirrorTextModel

ts
interface IMirrorTextModel {
    version: number;
}

IWorkerContext

ts
interface IWorkerContext<H> {
    host: H;
    getMirrorModels(): IMirrorModel[];
}