Skip to content

C# (Omnisharp-Roslyn)#

Server#

For more information about the LSP server, check OmniSharp-Roslyn.

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETomnisharpRET.

Supports automatic installation.

Debugger: Yes (netcoredbg)#

Available configurations#

lsp-csharp-csharpls-use-dotnet-tool#

Type: boolean

Default: t

Whether to use a dotnet tool version of the expected C# language server; only available for csharp-ls


lsp-csharp-csharpls-use-local-tool#

Type: boolean

Default: nil

Whether to use csharp-ls as a global or local dotnet tool.

Note: this variable has no effect if lsp-csharp-csharpls-use-dotnet-tool is nil.


lsp-csharp-omnisharp-enable-decompilation-support#

Type: boolean

Default: nil

Decompile bytecode when browsing method metadata for types in assemblies. Otherwise only declarations for the methods are visible (the default).


lsp-csharp-omnisharp-roslyn-binary-path#

Type: file

Default: ~/.emacs.d/.cache/lsp/omnisharp-roslyn/latest/OmniSharp

The path where omnisharp-roslyn binary after will be stored.


lsp-csharp-omnisharp-roslyn-download-url#

Type: string

Default: https://github.com/omnisharp/omnisharp-roslyn/releases/latest/download/omnisharp-linux-x64-net6.0.zip

Automatic download url for omnisharp-roslyn.


lsp-csharp-omnisharp-roslyn-server-dir#

Type: file

Default: ~/.emacs.d/.cache/lsp/omnisharp-roslyn/latest/omnisharp-roslyn

The path where omnisharp-roslyn .zip archive will be extracted.


lsp-csharp-omnisharp-roslyn-store-path#

Type: file

Default: ~/.emacs.d/.cache/lsp/omnisharp-roslyn/latest/omnisharp-roslyn.zip

The path where omnisharp-roslyn .zip archive will be stored.


lsp-csharp-server-install-dir#

Type: directory

Default: ~/.emacs.d/.cache/lsp/omnisharp-roslyn/

Installation directory for OmniSharp Roslyn server.


lsp-csharp-server-path#

Type: (string :tag Single string value or nil)

Default: nil

The path to the OmniSharp Roslyn language-server binary. Set this if you have the binary installed or have it built yourself.


lsp-csharp-solution-file#

Type: string

Default: nil

Solution to load when starting the server. Usually this is to be set in your .dir-locals.el on the project root directory.


lsp-csharp-test-run-buffer-name#

Type: string

Default: *lsp-csharp test run*

The name of buffer used for outputting lsp-csharp test run results.



Last update: November 19, 2024