csharp: Use lsp settings to locate binary if present (#15885)

C# extension now honors the "lsp" config section

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Jonathan Dickinson
2024-08-07 10:58:13 -04:00
committed by GitHub
co-authored by Marshall Bowers
parent 5ce6c374b0
commit 864c443f4b
2 changed files with 56 additions and 10 deletions
+17
View File
@@ -1,3 +1,20 @@
# C#
C# support is available through the [C# extension](https://github.com/zed-industries/zed/tree/main/extensions/csharp).
## Configuration
The `OmniSharp` binary can be configured in a Zed settings file with:
```jsonc
{
"lsp": {
"omnisharp": {
"binary": {
"path": "/path/to/OmniSharp",
"args": ["optional", "additional", "args", "-lsp"],
},
},
},
}
```