SofusA / roslyn-language-server

A wrapper around Roslyn language server which makes compatible with editors other than VSCode
MIT License
27 stars 4 forks source link

roslyn-language-server

A wrapper around the language server behind the C# Visual Studio Code extension, Microsoft.CodeAnalysis.LanguageServer, which makes it compatible with other editors, e.g., Helix. This is more stable and faster than OmniSharp.

This tool works around the quirks of Microsoft.CodeAnalysis.LanguageServer in the following way:

Installation

Binaries

Download the binaries that matches your platform under Releases

Nix

If you use nix, you can use this repository's nix flake.

Others

Alternatively, install with cargo: cargo install --git https://github.com/SofusA/roslyn-language-server

Usage

Use with Helix

Since Microsoft.CodeAnalysis.LanguageServer only supports pull diagnostics and Helix does not (yet), you would need to use my branch at github:sofusa/helix-pull-diagnostics.

[language-server.roslyn]
command = "roslyn-language-server"

[[language]]
name = "c-sharp"
language-servers = ["roslyn"]