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

lsp-ui-doc--handle-mouse-movement does not respect lsp-ui-doc-delay setting #664

Closed patrickt closed 2 years ago

patrickt commented 2 years ago

The run-with-idle-timer invocation when handling mouse events with lsp-ui-doc-show-with-mouse does not respect the doc-delay setting, as its idle delay is hardcoded:

(run-with-idle-timer 0.5 nil 'lsp-ui-doc--mouse-display)

I have changed this locally to pass in lsp-ui-doc-delay instead of 0.5, and I yield the behavior I want. Happy to submit this as a patch unless there is some reason why it won’t work.