MCPcopy Create free account
hub / github.com/angular/angular / rename

Method rename

ngp-vscode-ng-language-service/tests/test_helpers.ts:308–315  ·  view source on GitHub ↗
(filePath: string, position: Position, newName: string)

Source from the content-addressed store, hash-verified

306 }
307
308 async rename(filePath: string, position: Position, newName: string) {
309 const uri = await toUri(filePath);
310 return this.connection.sendRequest<any>('textDocument/rename', {
311 textDocument: {uri},
312 position,
313 newName,
314 });
315 }
316
317 async signatureHelp(filePath: string, position: Position, context?: SignatureHelpContext) {
318 const uri = await toUri(filePath);

Callers 1

renameAtCursorMethod · 0.45

Calls 1

toUriFunction · 0.70

Tested by

no test coverage detected