Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CsCherrYY
Copy link
Contributor

@CsCherrYY CsCherrYY commented Feb 22, 2023

requires eclipse-jdtls/eclipse.jdt.ls#2487

When auto-build is disabled, there will be no diagnostics from the references when modifying a public symbol manually (e.g., change method name from "test" to "test1"). It might lead to mistakes.

This PR will provide an info diagnostic and related quick fix to rename all the references when modifying a symbol name. The configuration java.refactoring.rename.references controls this. When it set to auto, this behavior will only happen when auto build is disabled.

demo:

renameReferneces.mp4

Signed-off-by: Shi Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant