File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,15 @@ tarball or a zip file (based on a current platform) to TARGET-DIR."
235
235
" Resolves path and arguments to use to start the server."
236
236
(list (lsp-csharp--language-server-path) " -lsp" ))
237
237
238
+ (lsp-defun lsp-csharp-open-project-file ()
239
+ " Open corresponding project file (.csproj) for the current file."
240
+ (interactive )
241
+ (-let* ((project-info-req (lsp-make-omnisharp-project-information-request :file-name (buffer-file-name )))
242
+ (project-info (lsp-request " o#/project" project-info-req))
243
+ ((&omnisharp:ProjectInformation :ms-build-project ) project-info)
244
+ ((&omnisharp:MsBuildProject :path ) ms-build-project))
245
+ (find-file path)))
246
+
238
247
(lsp-defun lsp-csharp--action-client-find-references ((&Command :arguments? ))
239
248
" Read first argument from ACTION as Location and display xrefs for that location
240
249
using the `textDocument/references' request."
Original file line number Diff line number Diff line change @@ -364,7 +364,10 @@ See `-let' for a description of the destructuring mechanism."
364
364
365
365
(lsp-interface (pwsh:ScriptRegion (:StartLineNumber :EndLineNumber :StartColumnNumber :EndColumnNumber :Text ) nil ))
366
366
367
- (lsp-interface (omnisharp:ErrorMessage (:Text :FileName :Line :Column )))
367
+ (lsp-interface (omnisharp:ErrorMessage (:Text :FileName :Line :Column ))
368
+ (omnisharp:ProjectInformationRequest (:FileName ))
369
+ (omnisharp:MsBuildProject (:IsUnitProject :IsExe :Platform :Configuration :IntermediateOutputPath :OutputPath :TargetFrameworks :SourceFiles :TargetFramework :TargetPath :AssemblyName :Path :ProjectGuid ))
370
+ (omnisharp:ProjectInformation (:ScriptProject :MsBuildProject )))
368
371
369
372
(lsp-interface (rls:Cmd (:args :binary :env :cwd ) nil ))
370
373
You can’t perform that action at this time.
0 commit comments