Skip to content

Commit

Permalink
remove set-visited-file-name
Browse files Browse the repository at this point in the history
keep buffer as a non-file buffer
  • Loading branch information
nohzafk committed Jul 30, 2024
1 parent 92d58ff commit 8c296b6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,6 @@ So we build this macro to restore postion after code format."
(defun lsp-bridge-completion-ui-visible-p ()
(acm-frame-visible-p acm-menu-frame))


(defun lsp-bridge-monitor-after-save ()
(lsp-bridge-call-file-api "save_file" (buffer-name)))

Expand Down Expand Up @@ -3011,13 +3010,7 @@ SSH tramp file name is like /ssh:user@host#port:path"
lsp-bridge-remote-file-port
lsp-bridge-remote-file-path)))
;; use `find-file' to open TRAMP docker file will open a tramp buffer, kill it
(kill-buffer (get-file-buffer tramp-filename))
;; set the name of the file visited in the current buffer
;; the next time the buffer is saved it will go in the tramp file
(set-visited-file-name tramp-filename t t)
;; auto reload the file content if formatter made change
;; otherwise when saving file emacs will warn file has been changed on disk
(auto-revert-mode 1)))
(kill-buffer (get-file-buffer tramp-filename))))

(when lsp-bridge-ref-open-remote-file-go-back-to-ref-window
(lsp-bridge-switch-to-ref-window)
Expand Down

0 comments on commit 8c296b6

Please sign in to comment.