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

Clear overlay state vars in lsp-ui-doc--hide-frame #712

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lsp-ui-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,12 @@ We don't extract the string that `lps-line' is already displaying."

(defun lsp-ui-doc--hide-frame (&optional _win)
"Hide the frame."
(setq lsp-ui-doc--bounds nil
lsp-ui-doc--from-mouse nil)
(lsp-ui-util-safe-delete-overlay lsp-ui-doc--inline-ov)
(lsp-ui-util-safe-delete-overlay lsp-ui-doc--highlight-ov)
(setq lsp-ui-doc--bounds nil
lsp-ui-doc--from-mouse nil
lsp-ui-doc--inline-ov nil
lsp-ui-doc--highlight-ov nil)
(when-let ((frame (lsp-ui-doc--get-frame)))
(when (frame-visible-p frame)
(make-frame-invisible frame))))
Expand Down