Skip to content

Commit

Permalink
style(lsp-csharp): Fix compilation warnings and other misc stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerio-pixel committed May 29, 2024
1 parent 25f88b1 commit b8d671d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions clients/lsp-csharp.el
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,9 @@ using the `textDocument/references' request."
path))

(defun lsp-csharp--omnisharp-metadata-uri-handler (uri)
"Handle `file:/(metadata)' uri from omnisharp-roslyn server.
The uri is parsed and then 'o#/metadata' request is issued to retrieve
"Handle `file:/(metadata)' URI from omnisharp-roslyn server.
The URI is parsed and then `o#/metadata' request is issued to retrieve
metadata from the server. A cache file is created on project root dir that
stores this metadata and filename is returned so lsp-mode can display this file."
(string-match lsp-csharp--omnisharp-metadata-uri-re uri)
Expand Down Expand Up @@ -392,11 +393,11 @@ stores this metadata and filename is returned so lsp-mode can display this file.
file-location))

(defun lsp-csharp--omnisharp-uri->path-fn (uri)
"Custom implementation of lsp--uri-to-path function to glue omnisharp's metadata uri."
"Custom implementation of lsp--uri-to-path function to glue omnisharp's
metadata uri."
(if (string-match-p lsp-csharp--omnisharp-metadata-uri-re uri)
(lsp-csharp--omnisharp-metadata-uri-handler uri)
(lsp--uri-to-path-1 uri))
)
(lsp--uri-to-path-1 uri)))

(defun lsp-csharp--omnisharp-environment-fn ()
"Build environment structure for current values of lsp-csharp customizables.
Expand Down

0 comments on commit b8d671d

Please sign in to comment.