Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -3431,11 +3431,11 @@ If NO-WAIT is non-nil send the request as notification."
:cancel-token :sync-request)
(while (not (or resp-error resp-result))
(if (functionp 'json-rpc-connection)
(catch 'lsp-done (sit-for 0.01))
(catch 'lsp-done (sit-for 0.001))
(catch 'lsp-done
(accept-process-output
nil
(if expected-time (- expected-time send-time) 1))))
0.001)))
(setq send-time (float-time))
(when (and expected-time (< expected-time send-time))
(error "Timeout while waiting for response. Method: %s" method)))
Expand Down Expand Up @@ -3470,7 +3470,7 @@ Return same value as `lsp--while-no-input' and respecting `non-essential'."
(while (not (or resp-error resp-result (input-pending-p)))
(catch 'lsp-done
(sit-for
(if expected-time (- expected-time send-time) 1)))
0.001))
(setq send-time (float-time))
(when (and expected-time (< expected-time send-time))
(error "Timeout while waiting for response. Method: %s" method)))
Expand Down