We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3009d9f commit c3e78c3Copy full SHA for c3e78c3
1 file changed
typescript/src/decorateProxy.ts
@@ -57,7 +57,7 @@ export const decorateLanguageService = (
57
const possiblyAddRename = (identifier: ts.Identifier | undefined) => {
58
if (identifier?.text !== oldPredictedName) return
59
const sourceFile = languageService.getProgram()!.getSourceFile(edit.fileName)!
60
- const newRenameEdits = proxy.findRenameLocations(edit.fileName, identifier.pos, false, false) ?? []
+ const newRenameEdits = proxy.findRenameLocations(edit.fileName, identifier.pos, false, false, preferences ?? {}) ?? []
61
if (!newRenameEdits) return
62
// maybe cancel symbol rename on collision instead?
63
const newInsertName = tsFull.getUniqueName(newPredictedName, sourceFile as any)
0 commit comments