Skip to content

Commit

Permalink
refactor(language-service): fix typo in method name (#43698)
Browse files Browse the repository at this point in the history
The `fineRenameLocations` method should be called `findRenameLocations`.

PR Close #43698
  • Loading branch information
crisbeto authored and dylhunn committed Oct 6, 2021
1 parent fa6aa1b commit 7a971ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ describe('find references and rename locations', () => {

function getRenameLocationsAtPosition(file: OpenBuffer) {
env.expectNoSourceDiagnostics();
const result = file.fineRenameLocations();
const result = file.findRenameLocations();
return result?.map((item) => humanizeDocumentSpanLike(item, env));
}
});
2 changes: 1 addition & 1 deletion packages/language-service/ivy/testing/src/buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class OpenBuffer {
return this.ngLS.getReferencesAtPosition(this.scriptInfo.fileName, this._cursor);
}

fineRenameLocations() {
findRenameLocations() {
return this.ngLS.findRenameLocations(this.scriptInfo.fileName, this._cursor);
}

Expand Down

0 comments on commit 7a971ca

Please sign in to comment.