From 0712eb3e3b66005ac6b768159e8eaef1d92fc97a Mon Sep 17 00:00:00 2001 From: Aaron Housh Date: Fri, 11 Mar 2022 17:19:31 -0700 Subject: [PATCH] Add csharp lsp support (#1788) * add csharp lsp support * remove hostPID * update docs --- book/src/generated/lang-support.md | 2 +- languages.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 62a2734b84a0..70edafb9c1dc 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -2,7 +2,7 @@ | --- | --- | --- | --- | --- | | bash | ✓ | | | `bash-language-server` | | c | ✓ | ✓ | ✓ | `clangd` | -| c-sharp | ✓ | | | | +| c-sharp | ✓ | | | `OmniSharp` | | cmake | ✓ | ✓ | ✓ | `cmake-language-server` | | comment | ✓ | | | | | cpp | ✓ | ✓ | ✓ | `clangd` | diff --git a/languages.toml b/languages.toml index 4c2bb1c412e9..c54eabba2cfc 100644 --- a/languages.toml +++ b/languages.toml @@ -206,9 +206,10 @@ name = "c-sharp" scope = "source.csharp" injection-regex = "c-?sharp" file-types = ["cs"] -roots = [] +roots = ["sln", "csproj"] comment-token = "//" indent = { tab-width = 4, unit = "\t" } +language-server = { command = "OmniSharp", args = [ "--languageserver", "--stdio" ] } [[grammar]] name = "c-sharp"