redhat-developer / redhat-developer/vscode-java

Sometimes show incorrect diagnostics status while moving files to new package to apply refactorings

Open
#1,880 0 comments 0 reactions 1 assignee View on GitHub

@testforstephen is already working on this.

Since Apr 15, 2021.

bug diagnostics
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

When i drag and drop a Java class to another package, it will prompt me whether to apply refactoring. When i choose to apply, the package declaration and import update are all updated. But sometimes, the diagnostics status of the changed classes are not refreshed.

For example, the screenshot below shows that the package declaration is updated for the moved class. But the diagnostics still says not matched package declaration.

image

The current workaround is to save all refactoring changes manually, and the diagnostics will be refreshed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.