Skip to content

Commit c3e78c3

Browse files
committed
dont use deprecated signature
1 parent 3009d9f commit c3e78c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/src/decorateProxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const decorateLanguageService = (
5757
const possiblyAddRename = (identifier: ts.Identifier | undefined) => {
5858
if (identifier?.text !== oldPredictedName) return
5959
const sourceFile = languageService.getProgram()!.getSourceFile(edit.fileName)!
60-
const newRenameEdits = proxy.findRenameLocations(edit.fileName, identifier.pos, false, false) ?? []
60+
const newRenameEdits = proxy.findRenameLocations(edit.fileName, identifier.pos, false, false, preferences ?? {}) ?? []
6161
if (!newRenameEdits) return
6262
// maybe cancel symbol rename on collision instead?
6363
const newInsertName = tsFull.getUniqueName(newPredictedName, sourceFile as any)

0 commit comments

Comments
 (0)