File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 64
64
65
65
(defcustom lsp-ui-doc-enable t
66
66
" Whether or not to enable lsp-ui-doc.
67
- Displays documentation of the symbol at point on hover. This only takes effect when a buffer is started."
67
+ Displays documentation of the symbol at point on hover. This only
68
+ takes effect when a buffer is started."
68
69
:type 'boolean
69
70
:group 'lsp-ui )
70
71
@@ -1178,6 +1179,7 @@ It is supposed to be called from `lsp-ui--toggle'"
1178
1179
(defun lsp-ui-doc-hide ()
1179
1180
" Hide hover information popup."
1180
1181
(interactive )
1182
+ (lsp-ui-doc-unfocus-frame) ; ; In case focus is in doc frame
1181
1183
(lsp-ui-doc--hide-frame))
1182
1184
1183
1185
(defun lsp-ui-doc-glance ()
@@ -1200,6 +1202,7 @@ It is supposed to be called from `lsp-ui--toggle'"
1200
1202
(interactive )
1201
1203
(when-let* ((frame (lsp-ui-doc--get-frame))
1202
1204
(visible (lsp-ui-doc--frame-visible-p)))
1205
+ (remove-hook 'post-command-hook 'lsp-ui-doc--hide-frame )
1203
1206
(set-frame-parameter frame 'lsp-ui-doc--no-focus nil )
1204
1207
(set-frame-parameter frame 'cursor-type t )
1205
1208
(lsp-ui-doc--with-buffer
You can’t perform that action at this time.
0 commit comments