From 81bf2200677355321136524658e3e880d56a6c87 Mon Sep 17 00:00:00 2001 From: "nohz.afk" <149959021+nohzafk@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:27:52 +0800 Subject: [PATCH] enable lsp-bridge-find-def to work inside container --- lsp-bridge.el | 4 ++++ 1 file changed, 4 insertions(+) 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