RenameProvider
ts
interface RenameProvider {
provideRenameEdits(model, position, newName, token): ProviderResult<WorkspaceEdit & Rejection>;
resolveRenameLocation?(model, position, token): ProviderResult<RenameLocation & Rejection>;
}
provideRenameEdits
- 语法:
provideRenameEdits(model, position, newName, token): ProviderResult<WorkspaceEdit & Rejection>
- 参数:
model
: ITextModelposition
: PositionnewName
:string
token
: CancellationToken
- 返回值:ProviderResult<WorkspaceEdit & Rejection>
resolveRenameLocation
- 语法:
resolveRenameLocation(model, position, token): ProviderResult<RenameLocation & Rejection>
- 参数:
model
: ITextModelposition
: Positiontoken
: CancellationToken
- 返回值:ProviderResult<RenameLocation & Rejection>