-
Notifications
You must be signed in to change notification settings - Fork 408
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
'Force Java compilation' breaks diagnostics in dirty files #834
Comments
Does this scenario work in Eclipse?
Sorry, but no can do: we don't control the clients. |
It does. |
actually it doesn't work in eclipse either. |
could work, but I'm afraid that might cause a performance issue in the case of incremental builds when several hundreds of files are opened. |
@fbricon @snjeza In order to fix the diagnostic issue, I make some try in this commits: 3dc6a0c It did fix the issue for rename type, but still not fixed the issue for renaming packages. So I would think we should save the files when renaming, which is the behavior of the eclipse. Similar case for "Force Java Compiling" |
can we get unit tests for that? |
@yaohaizh has already created DocumentLifeCycleHandlerTest.testBasicBufferLifeCycleWithoutSave - See https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.tests/src/org/eclipse/jdt/ls/core/internal/handlers/DocumentLifeCycleHandlerTest.java#L250 |
Steps to reproduce:
Diagnostic message disappears.
A solution would be to:
or
The text was updated successfully, but these errors were encountered: