Skip to content

Commit

Permalink
Make lsp-bridge-jump-to-file support deno/csharp
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jun 10, 2024
1 parent da7d225 commit 1fa1784
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 @@ -2371,6 +2371,10 @@ SymbolKind (defined in the LSP)."
(defun lsp-bridge-jump-to-file (file position)
(cond ((string-prefix-p "jdt://" file)
(lsp-bridge-call-file-api "jdt_uri_resolver" (url-encode-url file) position "lsp-bridge-define--jump"))
((string-prefix-p "deno:" file)
(lsp-bridge-call-file-api "deno_uri_resolver" (url-encode-url file) position "lsp-bridge-define--jump"))
((string-prefix-p "csharp:/metadata/" file)
(lsp-bridge-call-file-api "csharp_uri_resolver" (url-encode-url file) position "lsp-bridge-define--jump"))
(t
(find-file file)
(goto-char (acm-backend-lsp-position-to-point position)))))
Expand Down

0 comments on commit 1fa1784

Please sign in to comment.