Skip to content

IWorkspaceTextEdit

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.IWorkspaceTextEdit.html

ts
interface IWorkspaceTextEdit {
    metadata?: WorkspaceEditMetadata;
    resource: Uri;
    textEdit: TextEdit & {
        insertAsSnippet?: boolean;
    };
    versionId: number;
}

metadata

resource

textEdit

  • 类型:TextEdit & { insertAsSnippet?: boolean }

versionId

  • 类型:number