• Stars
    star
    521
  • Rank 84,952 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Language Server Protocol in C#

C# Language Server Protocol

This is an implementation of the Language Server Protocol written entirely in C# for .NET.

Getting Started

  1. git clone
  2. run build.ps1 / build.sh
  3. ...
  4. Profit

Concepts

JSON-RPC

We have an implementation of JSON-RPC designed to implement the JSON-RPC as correctly as possible.

For more information about using the JsonRpcServer on it's own here.

MediatR

Internally this library revolves around the request and response model. To make things easier we use MediatR as core piece that manages how requests and responses are handled.

Microsoft.Extensions.*

We re-use some of the common packages used by .NET Core.

  • Microsoft.Extensions.Configuration for common configuration
  • Microsoft.Extensions.DependencyInjection for common Dependency Injection abstractions
  • Microsoft.Extensions.Logging for logging.

Language Server Protocol

We strive to ensure that we implement all the types, request and notifications that are defined by the Language Server Protocol. Sometimes this is difficult due to the nature of LSP TypeScript upbringing, but the goal is 100% conformance with the protocol itself.

For more information about using the LanguageClient / LanguageServer on it's own here.

Debug Adapter Protocol

We strive to ensure that we implement all the types, events and requests that are defined by the Debug Adapter Protocol.

For more information about using the DebugAdapterClient / DebugAdapterServer on it's own here.

Status

github-release-badge github-license-badge codecov-badge

Azure Pipelines GitHub Actions
azurepipelines-badge github-badge
azurepipelines-history-badge github-history-badge
Package NuGet
OmniSharp.Extensions.DebugAdapter nuget-version-hefb6om79mfg-badgenuget-downloads-hefb6om79mfg-badge
OmniSharp.Extensions.DebugAdapter.Client nuget-version-94qjnkon/cda-badgenuget-downloads-94qjnkon/cda-badge
OmniSharp.Extensions.DebugAdapter.Proposals nuget-version-ajdnjvhbx+0w-badgenuget-downloads-ajdnjvhbx+0w-badge
OmniSharp.Extensions.DebugAdapter.Server nuget-version-f/4jrt4grmdg-badgenuget-downloads-f/4jrt4grmdg-badge
OmniSharp.Extensions.DebugAdapter.Shared nuget-version-2fkn0yzdbhmg-badgenuget-downloads-2fkn0yzdbhmg-badge
OmniSharp.Extensions.DebugAdapter.Testing nuget-version-jppuysmkpfcw-badgenuget-downloads-jppuysmkpfcw-badge
OmniSharp.Extensions.JsonRpc nuget-version-a1bmkwyotvkg-badgenuget-downloads-a1bmkwyotvkg-badge
OmniSharp.Extensions.JsonRpc.Generators nuget-version-m6majhsjiw1q-badgenuget-downloads-m6majhsjiw1q-badge
OmniSharp.Extensions.JsonRpc.Testing nuget-version-punkj7/efvjq-badgenuget-downloads-punkj7/efvjq-badge
OmniSharp.Extensions.LanguageClient nuget-version-fclou9t/p2ba-badgenuget-downloads-fclou9t/p2ba-badge
OmniSharp.Extensions.LanguageProtocol nuget-version-vddj9t6jnirq-badgenuget-downloads-vddj9t6jnirq-badge
OmniSharp.Extensions.LanguageProtocol.Proposals nuget-version-z5fadevkwpng-badgenuget-downloads-z5fadevkwpng-badge
OmniSharp.Extensions.LanguageProtocol.Testing nuget-version-md8c3c/bo/8g-badgenuget-downloads-md8c3c/bo/8g-badge
OmniSharp.Extensions.LanguageServer nuget-version-fkxlzvrmzpbw-badgenuget-downloads-fkxlzvrmzpbw-badge
OmniSharp.Extensions.LanguageServer.Shared nuget-version-4htmykprzq1a-badgenuget-downloads-4htmykprzq1a-badge

License

Copyright Β© .NET Foundation, and contributors.

OmniSharp is provided as-is under the MIT license. For more information see LICENSE.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Contribution License Agreement

By signing the CLA, the community is free to use your contribution to .NET Foundation projects.

.NET Foundation

This project is supported by the .NET Foundation.