diff --git a/lsp-bridge.el b/lsp-bridge.el index 2ce4a9bc42..a7537a01db 100644 --- a/lsp-bridge.el +++ b/lsp-bridge.el @@ -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