Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Don't republish old errors on successful compilation
We need to report all problems if a BSP client just connected to the server and never compiled. `reportAllPreviousProblems` will be set to true in that case. However, if previously we had an error, which was reverted and got back to the state before the error, we will get a successfull noop compilation, which will not produce any problems. In this case we don't want to republish everything again, since diagnostics will contain the error which was reverted. Connected to VirtusLab/scala-cli#2226 where CLI always connected anew.
- Loading branch information