# LanguageServer.NET **Repository Path**: mirrors_lextm/LanguageServer.NET ## Basic Information - **Project Name**: LanguageServer.NET - **Description**: A .NET implementation of Language Server Protocol infrastructure library for VSCode. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LanguageServer.NET A .NET implementation of [Language Server Protocol](https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md) infrastructure library for VSCode, and hopefully, might also be used with other IDEs that support Language Server Protocol. Still work in progress and API is subject to change. ![Screenshot of DemoLanguageServer](README.resource/Screenshot.gif) Based on [CXuesong/JsonRpc.Standard](https://github.com/CXuesong/JsonRpc.Standard), this .NET Standard library intends to provide basic interfaces and data structures so that you can write a language server in C#, build it on .NET Core and, with the help of the client-side code of [Microsoft/vscode-languageserver-node](https://github.com/Microsoft/vscode-languageserver-node), use it in VSCode. For an actual (WIP) [Wikitext](https://en.wikipedia.org/wiki/Wiki_markup) language server based on this library, please take a look at [CXuesong/MwLanguageServer](https://github.com/CXuesong/MwLanguageServer). The library is now available on NuGet. To install the package, run the following command in the Package Manager Console ```powershell Install-Package CXuesong.LanguageServer.VsCode -Pre ``` ## To set up the demo You may need Visual Studio 2017 to build the demo. 1. Open `DemoLanguageServer` in VS, choose `Debug` profile, and build the project. 2. Open `Client\VsCode` folder in VSCode. 3. Run `npm install` in the terminal. 4. Press F5 and a new VSCode window (Extension Development Host) should show. 5. Open a folder in the new VSCode window, and create a new file. 6. Change the file language to `Demo Language` 7. Then your editor will work as shown in the screenshot. Enter `.net core` in the editor and see what happens. To debug the server application, you may wish to turn `WAIT_FOR_DEBUGGER` conditional switch on in `DemoLanguageServer/Program.cs`. After starting up the Extension Development Host, and activating the language server, you may attach VS Debugger to `dotnet` process and go on debugging. You may also set the `default` value of `demoLanguageServer.trace.server` to `"messages"` in `package.json` to make language client show more debugging information.