emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

Fix the conflict between `lsp-ui-doc-mode` and `dap-tooltip-mode`. #660

Closed hongyi-zhao closed 2 years ago

hongyi-zhao commented 2 years ago

I'm experiencing the problem reported here. To be specific, there is a conflict between lsp-ui-doc-mode' anddap-tooltip-mode' when both of them are enabled, which will cause the debugger not to display the variable value when the mouse hovers over the corresponding variable name. I tried the suggested solution here, as shown below, but it doesn't work:

(define-advice dap-debug (:after (orig-func &rest args) disable-lsp-ui-doc) (lsp-ui-doc-mode -1))
(define-advice dap-disconnect (:after (orig-func &rest args) enable-lsp-ui-doc) (lsp-ui-doc-mode t))

Any hints for fixing this problem will be highly appreciated. Also see the issue here.

Regards, HZ

hongyi-zhao commented 2 years ago

The problem discussed here has been solved, so I closed it.