-
Notifications
You must be signed in to change notification settings - Fork 141
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
lsp-ui-doc-delay
also applies to lsp-ui-doc-glance
/-show
#728
Comments
Can you double check you are actually using lsp-ui version a94bcec or higher? Prior to that version I would expect the delay you are seeing, but that commit fixed the issue, and indeed it works correctly for me. |
Thanks for the response 😄 As far as I can tell, I am indeed using version 494bcec or higher. At least |
Perhaps put a similar message inside the |
Sure thing! And yeah, calling LogsHere's some 'log' output. For
lsp-ui-doc-glance
Interestingly, it seems as if lsp-ui-doc-show
This seems to work the exact same as with From what I can make out, there is something that happens after the first request has started, which invokes |
The trace suggests that the show/glance popup is getting dismissed immediately and then you are seeing a popup initiated via |
Ah, okay, that might explain it indeed. And yeah, I am using I realize I wasn't completely clear about this in my opening post, so sorry for the confusion. A bit late, but here's my use case / what I want to achieve:
In other words, I'd like to leave Is that possible at the moment or is that not supported? |
Description and expectations
The variable
lsp-ui-doc-delay
controls how long you need to idle before the lsp-ui-doc popup shows up. However, it also seems to affect how long it takes before the doc pops up when you explicitly trigger the doc, which is unexpected.So for instance, if I run
lsp-ui-doc-glance
in a buffer, it'll only show afterlsp-ui-doc-delay
seconds. This seems like strange behavior. I would expect that when you manually trigger it, it'd show immediately.Additional info
I did some digging, and I found this defun which is used by both
lsp-ui-doc-glance
andlsp-ui-doc-show
. It should (as far as I can tell), setlsp-ui-doc-delay
to0
for thelsp-ui-doc--make-request
function.I'm not very experienced at debugging elisp, but I put a
message
call within thelsp-ui-doc--make-request
function and evaluated the defun. Whenever I invoked thelsp-ui-doc-glance
function, it would tell me thatlsp-ui-doc-delay
was whatever it was usually set to (and definitely not0
). So for some reason, it seems that this variable doesn't apply correctly.Do you know what's going on here? I'd be happy to share any other details if you need anything. Thank you!
System details
The text was updated successfully, but these errors were encountered: