C# Omnisharp Roslyn Configuration
The details below describe how to install and configure the C# Omnisharp Roslyn language server found here
Installing the Language Server
To install the language server download the latest omnisharp-win-x64.zip
binaries found here
NOTE: This testing described below was done using the v1.32.9 release.
Extract the contents of the zip file taking note of that folder location.
In this case the zip file was extracted to the folder location shown below with that folder containing the language server executable:
Directory of C:\Project\omnisharp
22/01/2019 07:02 PM 8,192 OmniSharp.exe
Check the language server binary by running the following command:
That command should result in the following output:
-? | -h | --help Show help information
-s | --source Solution or directory for OmniSharp to point at (defaults to current directory).
-l | --loglevel Level of logging (defaults to 'Information').
-v | --verbose Explicitly set 'Debug' log level.
-hpid | --hostPID Host process ID.
-z | --zero-based-indices Use zero based indices in request/responses (defaults to 'false').
-pl | --plugin Plugin name(s).
-d | --debug Wait for debugger to attach
-lsp | --languageserver Use Language Server Protocol.
-e | --encoding Input / output encoding for STDIO protocol.
Start Zeus and use the Options, Document Types
menu to edit the C# document type and in the Language Server
panel apply the following configuration settings:
Program Type: Executable
NOTE: The fully qualified executable name can omitted the directory details if the executable folder is found in the system
PATH environment variable.
The Zeus IDE provides an option to import Visual Studio solution files which is uses to create a Zeus workspace file and when using this option the following argument should be added to the configuration:
This argument is setting the solution folder using the $wdd tag which equates to the drive and directory location of the currently active workspace.
Using the Language Server
To test the configuration create a simple
test.cs file and fire off an auto-complete request:
Released: 13 th July 2022