Skip to content

Commit

Permalink
Add some debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jul 1, 2023
1 parent 1b49427 commit 87ad246
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,17 @@ So we build this macro to restore postion after code format."
;; Send change_file request to trigger LSP completion.
(when (or (lsp-bridge-call-file-api-p)
(lsp-bridge-is-remote-file))

;; Uncomment below code to debug `change_file' protocol.
;; (message (format "change_file: '%s' '%s' '%s' '%s' '%s' '%s'"
;; length
;; lsp-bridge--before-change-begin-pos
;; lsp-bridge--before-change-end-pos
;; (lsp-bridge--position)
;; (buffer-substring-no-properties begin end)
;; (buffer-substring-no-properties (line-beginning-position) (point))
;; ))

(lsp-bridge-call-file-api "change_file"
lsp-bridge--before-change-begin-pos
lsp-bridge--before-change-end-pos
Expand Down

0 comments on commit 87ad246

Please sign in to comment.