Skip to content

Commit

Permalink
push marker to xref before jump to file
Browse files Browse the repository at this point in the history
  • Loading branch information
scturtle committed Jul 12, 2023
1 parent 4096d00 commit 2d3bf17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d3bf17

Please sign in to comment.