mirror of
https://github.com/github/awesome-copilot.git
synced 2026-04-13 03:35:55 +00:00
fix: update C# (.NET) LSP config to use roslyn-language-server instead of OmniSharp/csharp-ls
Agent-Logs-Url: https://github.com/github/awesome-copilot/sessions/5a995a31-efc6-4933-a212-7cff8b58abb5 Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1fe1871690
commit
8683ffbef7
@@ -209,21 +209,31 @@ On macOS with Homebrew, the binary is installed as `jdtls` on `$PATH`.
|
||||
|
||||
## C# (.NET)
|
||||
|
||||
**Server**: [OmniSharp](https://github.com/OmniSharp/omnisharp-roslyn) or [csharp-ls](https://github.com/razzmatazz/csharp-language-server)
|
||||
**Server**: [Roslyn Language Server](https://github.com/dotnet/roslyn) (via `dotnet dnx`)
|
||||
|
||||
### Install (csharp-ls)
|
||||
Requires the **.NET SDK** installed and on `$PATH`. The `dotnet dnx` command fetches and runs the `roslyn-language-server` package automatically.
|
||||
|
||||
| OS | Command |
|
||||
|---------|-------------------------------------------------|
|
||||
| Any | `dotnet tool install --global csharp-ls` |
|
||||
### Install
|
||||
|
||||
| OS | Command |
|
||||
|---------|----------------------------------------------------------------------|
|
||||
| Any | .NET SDK required (`dotnet` on `$PATH`); no separate install needed |
|
||||
|
||||
### Config snippet
|
||||
|
||||
```json
|
||||
{
|
||||
"csharp": {
|
||||
"command": "csharp-ls",
|
||||
"args": [],
|
||||
"command": "dotnet",
|
||||
"args": [
|
||||
"dnx",
|
||||
"roslyn-language-server",
|
||||
"--yes",
|
||||
"--prerelease",
|
||||
"--",
|
||||
"--stdio",
|
||||
"--autoLoadProjects"
|
||||
],
|
||||
"fileExtensions": {
|
||||
".cs": "csharp"
|
||||
}
|
||||
@@ -231,6 +241,8 @@ On macOS with Homebrew, the binary is installed as `jdtls` on `$PATH`.
|
||||
}
|
||||
```
|
||||
|
||||
> **Note**: The `dotnet dnx` command downloads and runs the `roslyn-language-server` NuGet tool package. The `--yes` flag auto-accepts the download prompt, `--prerelease` allows prerelease versions, and `--autoLoadProjects` enables automatic project discovery.
|
||||
|
||||
---
|
||||
|
||||
## Ruby
|
||||
|
||||
Reference in New Issue
Block a user