Skip to content

Show quick fix to rename references for modifying symbol name manually#2487

Open
CsCherrYY wants to merge 1 commit intoeclipse-jdtls:mainfrom
CsCherrYY:cs-rename-reference
Open

Show quick fix to rename references for modifying symbol name manually#2487
CsCherrYY wants to merge 1 commit intoeclipse-jdtls:mainfrom
CsCherrYY:cs-rename-reference

Conversation

@CsCherrYY
Copy link
Copy Markdown
Contributor

related to redhat-developer/vscode-java#2959, more details and demo video can be found there.

Will add test cases later.

@CsCherrYY
Copy link
Copy Markdown
Contributor Author

Tested in spring-petclinic Owner.java, some performance profiling result:

Most calculation of this change presents in method provideRenameReferencesMarkers()
When most changes focus on changing method names:
image

When most changes focus on editing code:
image

@CsCherrYY
Copy link
Copy Markdown
Contributor Author

CsCherrYY commented Feb 24, 2023

tested in a java file with ~200 public fields and focus more on editing member names:

image

tested in a java file with ~150 public methods and focus on both editing the method name and method content

image

The performance recording shows the performance is acceptable.

@CsCherrYY CsCherrYY marked this pull request as ready for review February 24, 2023 07:21
@snjeza
Copy link
Copy Markdown
Contributor

snjeza commented Feb 24, 2023

test this please

Signed-off-by: Shi Chen <chenshi@microsoft.com>
@CsCherrYY CsCherrYY force-pushed the cs-rename-reference branch from dd96acb to f963941 Compare March 16, 2023 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants