Skip to content

Commit

Permalink
Fix issue #817, don't send reqeust if lsp-bridge-enable-inlay-hint is…
Browse files Browse the repository at this point in the history
… disable.
  • Loading branch information
manateelazycat committed Dec 29, 2023
1 parent 1992ae2 commit 94620c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ So we build this macro to restore postion after code format."
(redisplay t) ; NOTE: we need call `redisplay' to force `window-start' return RIGHT line number.
(let ((window-pos (window-start)))
(when (not (equal lsp-bridge-inlay-hint-last-update-pos window-pos))
(lsp-bridge-inlay-hint)
(lsp-bridge-try-send-inlay-hint-request)
(setq-local lsp-bridge-inlay-hint-last-update-pos window-pos)))
)))

Expand Down

0 comments on commit 94620c7

Please sign in to comment.