-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
legacy-area-analyzerUse area-devexp instead.Use area-devexp instead.triage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Reopening #56764 (comment) as I don't think it should've been closed.
Hello!
This is similar to #56518, but for another core IDE functionality: Renaming.
One way code-generators often work is by generating a new identifier, based on a user-defined identifier.
Like @example class UserDefined
vs userDefinedGenerated
, where the latter is generated based on a string transformation of the former.
The problem is, renaming renaming one of the two identifiers won't rename the other.
- Renaming
@example class UserDefined
will correctly update the generate code, but any existing reference touserDefinedGenerated
will stay unchanged. Users will then have to modify those by hand ; which can be very tedious and error prone. - Renaming
userDefinedGenerated
will not updateUserDefined
; which means re-generating the code will revert our rename.
It would be great for the IDE to be able to rename both the generated and user-defined identifiers at once.
Metadata
Metadata
Assignees
Labels
legacy-area-analyzerUse area-devexp instead.Use area-devexp instead.triage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug