Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #1131. I think this fix at least should substantially
improve matters. The intersection of the filter and the active being empty means the diagnostics is not interesting.
- Loading branch information
06d8be3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can i add if(filter.isEmpty()) return String() in else? In my scenario, no active buffers of project in emacs, the compilation will generate source code files, the generated code will trigger the diagnostics logic, cause the emacs occupied 100% cpu. I have tested, after i added the code, emacs become normal.