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

[lsp-ui-flycheck] Clear overlays before calling (flycheck-buffer) #214

Closed
wants to merge 1 commit into from

Conversation

MaskRay
Copy link
Member

@MaskRay MaskRay commented Dec 25, 2018

@sebastiencs
Copy link
Member

sebastiencs commented Dec 27, 2018

I see that the function flycheck-buffer clean itself the current buffer, what is the advantage of calling flycheck-clear from lsp-ui ?

@sebastiencs
Copy link
Member

From a comment in flycheck-buffer function, it is not recommended to use flycheck-clear before flycheck-buffer:

;; Clear error list and mark all overlays for deletion.  We do not
;; delete all overlays immediately to avoid excessive re-displays and
;; flickering, if the same errors gets highlighted again after the check
;; completed.

@MaskRay
Copy link
Member Author

MaskRay commented Dec 28, 2018

I noted: "I investigated flycheck in August: "in lsp-after-diagnostics-hook, (flycheck-clear-errors) does not clear errors in the overlays" "but (flycheck-clear) will" not sure if it still applies"

@yshui reported that this may fix the issue of lingering diagnostic overlays

@brotzeit
Copy link
Member

I'm trying to clean up a little. If this is still an issue please reopen.

@brotzeit brotzeit closed this Feb 16, 2020
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

Successfully merging this pull request may close these issues.

3 participants