Skip to content

RenameProvider

原文链接

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

ts
interface RenameProvider {
    provideRenameEdits(model, position, newName, token): ProviderResult<WorkspaceEdit & Rejection>;
    resolveRenameLocation?(model, position, token): ProviderResult<RenameLocation & Rejection>;
}

provideRenameEdits

resolveRenameLocation