MappedEditsProvider
原文链接
https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.MappedEditsProvider.html
ts
interface MappedEditsProvider {
provideMappedEdits(document, codeBlocks, context, token): Promise<WorkspaceEdit>;
}
provideMappedEdits
- 语法:
provideMappedEdits(document, codeBlocks, context, token): Promise<WorkspaceEdit>
- 参数:
document
: ITextModelcodeBlocks
:string[]
context
: MappedEditsContexttoken
: CancellationToken
- 返回值:
Promise<
WorkspaceEdit>
- 描述:文本编辑的提供程序结果。