-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringstype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
While working at https://dart-review.googlesource.com/c/sdk/+/392860 for #49294, I was refactoring and needed to rename a private method for AddConst
.
The method was used only once and since it is a file with no parts the analysis and renaming for this should be really fast.
After talking with @DanTup on Discord he mentioned that this is actually caused by the creation of an index that for future renamings would decrease the waiting time.
I was wondering if we could ever do some form of work to help users with this long waiting time for renaming simple things. I have two suggestions which basically overlap:
- Creating that index in the background hopefully before it is needed in a way that doesn't slow down things the user does care about (suggested by Dan).
- Basically the above but with a small tweak. I think this could be started whenever the user did request to rename something but we could actually try and leave that work running separately after we had solved the single rename request. I'm not sure how exactly we could do this but I thought of something like:
- User requests to rename something
- We calculate every reference to it that needs to be renamed
- Return that result but also trigger the background process to calculate the index for everything else
cleberlz, tenhobi and FMorschel
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringstype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug