diff --git a/conventions/copilot-lsp-csharp/README.md b/conventions/copilot-lsp-csharp/README.md index 5f7bb3c..6afa3d2 100644 --- a/conventions/copilot-lsp-csharp/README.md +++ b/conventions/copilot-lsp-csharp/README.md @@ -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 diff --git a/conventions/copilot-lsp-csharp/convention.yml b/conventions/copilot-lsp-csharp/convention.yml index cf1fea8..90bee2f 100644 --- a/conventions/copilot-lsp-csharp/convention.yml +++ b/conventions/copilot-lsp-csharp/convention.yml @@ -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 \ No newline at end of file + .razor: aspnetcorerazor + .cshtml: aspnetcorerazor + warmupTimeoutMs: 120000