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

Revert 696 #710

Merged
merged 1 commit into from
May 14, 2022
Merged
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
10 changes: 5 additions & 5 deletions lsp-ui-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -961,10 +961,7 @@ BUFFER is the buffer where the request has been made."
(-some->> contents
lsp-ui-doc--extract
(replace-regexp-in-string "\r" "")
(replace-regexp-in-string " " " ")))
(when lsp-ui-doc--unfocus-frame-timer
(cancel-timer lsp-ui-doc--unfocus-frame-timer))
(add-hook 'post-command-hook 'lsp-ui-doc--glance-hide-frame))
(replace-regexp-in-string " " " "))))
(lsp-ui-doc--hide-frame))))

(defun lsp-ui-doc--delete-frame ()
Expand Down Expand Up @@ -1182,7 +1179,10 @@ It is supposed to be called from `lsp-ui--toggle'"
"Trigger display hover information popup and hide it on next typing."
(interactive)
(let ((lsp-ui-doc-show-with-cursor t))
(lsp-ui-doc--make-request)))
(lsp-ui-doc--make-request))
(when lsp-ui-doc--unfocus-frame-timer
(cancel-timer lsp-ui-doc--unfocus-frame-timer))
(add-hook 'post-command-hook 'lsp-ui-doc--glance-hide-frame))

(define-minor-mode lsp-ui-doc-frame-mode
"Marker mode to add additional key bind for lsp-ui-doc-frame."
Expand Down