Skip to content

CodeAction

原文链接

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

ts
interface CodeAction {
    command?: Command;
    diagnostics?: IMarkerData[];
    disabled?: string;
    edit?: WorkspaceEdit;
    isAI?: boolean;
    isPreferred?: boolean;
    kind?: string;
    ranges?: IRange[];
    title: string;
}

command

diagnostics

disabled

  • 类型:string

edit

isAI

  • 类型:boolean

isPreferred

  • 类型:boolean

kind

  • 类型:string

ranges

title

  • 类型:string