Skip to content

Commit

Permalink
Revert 696 (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 authored May 14, 2022
1 parent eba9c4e commit 370022b
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 370022b

Please sign in to comment.