Skip to content

Commit

Permalink
enable lsp-bridge-find-def to work inside container
Browse files Browse the repository at this point in the history
  • Loading branch information
nohzafk committed Jul 31, 2024
1 parent 1bcdde0 commit 81bf220
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,10 @@ Then we need call `lsp-bridge--set-mark-ring-in-new-buffer' in new buffer after

(if (or (string-equal filehost "") lsp-bridge-enable-with-tramp)
(progn
;; filehost sent by lsp-bridge server running inside docker is 127.0.0.1
(when (and lsp-bridge-remote-file-host (string= filehost "127.0.0.1"))
(setq filehost lsp-bridge-remote-file-host))

(setq filename (concat (cdr (assoc filehost lsp-bridge-tramp-alias-alist)) filename))
(let ((match-window (lsp-bridge-find-window-match-filename filename)))
(if (and lsp-bridge-find-def-select-in-open-windows
Expand Down

0 comments on commit 81bf220

Please sign in to comment.