From 9bbdebf5226e7fb4c33fe692e2339e9162354d95 Mon Sep 17 00:00:00 2001 From: scturtle Date: Wed, 12 Jul 2023 13:51:46 +0800 Subject: [PATCH] push marker to xref before jump to file (#4096) --- lsp-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lsp-mode.el b/lsp-mode.el index fe5942c0eb..79c94e9ec0 100644 --- a/lsp-mode.el +++ b/lsp-mode.el @@ -4876,6 +4876,7 @@ Applies on type formatting." (type (url-type parsed-url))) (pcase type ("file" + (xref-push-marker-stack) (find-file (lsp--uri-to-path url)) (-when-let ((_ line column) (s-match (rx "#" (group (1+ num)) (or "," "#") (group (1+ num))) url)) (goto-char (lsp--position-to-point