Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conventions/copilot-lsp-csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Applies the published C# GitHub Copilot CLI LSP server configuration.

## Behavior

The convention applies a fixed `csharp` server definition that runs `dnx --yes --prerelease roslyn-language-server -- --stdio --autoLoadProjects` for `.cs` and `.cshtml` files.
The convention applies a fixed `csharp` server definition that runs `dnx roslyn-language-server --yes --prerelease -- --stdio --autoLoadProjects`, sets the working directory to `${PLUGIN_ROOT}`, and applies the server mapping for `.cs`, `.razor`, and `.cshtml` files.

## Example

Expand Down
7 changes: 5 additions & 2 deletions conventions/copilot-lsp-csharp/convention.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ conventions:
servers:
csharp:
command: dnx
args: [--yes, --prerelease, roslyn-language-server, --, --stdio, --autoLoadProjects]
args: [roslyn-language-server, --yes, --prerelease, --, --stdio, --autoLoadProjects]
cwd: ${PLUGIN_ROOT}
fileExtensions:
.cs: csharp
.cshtml: csharp
.razor: aspnetcorerazor
.cshtml: aspnetcorerazor
warmupTimeoutMs: 120000
Loading