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

"Unused import" diagnostics disappear after opening file in vscode-javac #838

Open
datho7561 opened this issue Sep 17, 2024 · 1 comment

Comments

@datho7561
Copy link

For example, in https://github.com/eclipse/lemminx, org.w3c.dom.Node is imported in DTDEntityDecl but is never used. This is correctly reported when the document is closed, but once it's opened, the warning disappears.

The root cause is probably related to the unused tree scanner. Maybe it's not being registered correctly for working copies, or maybe its diagnostics are written over by something else.

@testforstephen
Copy link

Duplicates with #763. This is supposed to be fixed by #808, but we reverted it by #818 due to some regressions. Mickael's recent change #822 can also fix it.

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

No branches or pull requests

2 participants