Skip to content

Commit

Permalink
Add lsp-bridge-stop-process.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Sep 6, 2024
1 parent bd0cea9 commit 8d0e32e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -1150,9 +1150,6 @@ So we build this macro to restore postion after code format."
(cl-return (cons (get-buffer-window buffer) (selected-window)))
)))

;; Hide diagnostics.
(lsp-bridge-diagnostic-hide-overlays)

;; Restart lsp-bridge process.
(lsp-bridge-kill-process)
(lsp-bridge-start-process)
Expand Down Expand Up @@ -1211,6 +1208,9 @@ So we build this macro to restore postion after code format."
"Stop LSP-Bridge process and kill all LSP-Bridge buffers."
(interactive)

;; Hide diagnostics.
(lsp-bridge-diagnostic-hide-overlays)

;; Run stop process hooks.
(run-hooks 'lsp-bridge-stop-process-hook)

Expand All @@ -1219,6 +1219,8 @@ So we build this macro to restore postion after code format."

(add-hook 'kill-emacs-hook #'lsp-bridge-kill-process)

(defalias 'lsp-bridge-stop-process #'lsp-bridge-kill-process)

(defun lsp-bridge--kill-python-process ()
"Kill LSP-Bridge background python process."
(when (lsp-bridge-process-live-p)
Expand Down

0 comments on commit 8d0e32e

Please sign in to comment.