OneWare.OmniSharp.Extensions.LanguageClient 1.0.2

dotnet add package OneWare.OmniSharp.Extensions.LanguageClient --version 1.0.2
                    
NuGet\Install-Package OneWare.OmniSharp.Extensions.LanguageClient -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OneWare.OmniSharp.Extensions.LanguageClient" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OneWare.OmniSharp.Extensions.LanguageClient" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="OneWare.OmniSharp.Extensions.LanguageClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OneWare.OmniSharp.Extensions.LanguageClient --version 1.0.2
                    
#r "nuget: OneWare.OmniSharp.Extensions.LanguageClient, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OneWare.OmniSharp.Extensions.LanguageClient@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OneWare.OmniSharp.Extensions.LanguageClient&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=OneWare.OmniSharp.Extensions.LanguageClient&version=1.0.2
                    
Install as a Cake Tool

C# Language Server Protocol

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

OneWare fork

This fork is published on NuGet under the OneWare. prefix, built against .NET 10 with full LSP 3.17/3.18 coverage.

Upstream package OneWare package
OmniSharp.Extensions.LanguageProtocol OneWare.OmniSharp.Extensions.LanguageProtocol
OmniSharp.Extensions.LanguageClient OneWare.OmniSharp.Extensions.LanguageClient
OmniSharp.Extensions.LanguageServer OneWare.OmniSharp.Extensions.LanguageServer
OmniSharp.Extensions.JsonRpc OneWare.OmniSharp.Extensions.JsonRpc

Assembly names and the strong name key remain identical to upstream. Starting with 1.0.2, the request contracts are repository-owned MIT code instead of an external mediator dependency. This is a binary breaking change: recompile applications and plugins against the new packages, and upgrade the entire package closure together. Protocol model namespaces and wire formats remain unchanged.

<PackageReference Include="OneWare.OmniSharp.Extensions.LanguageClient" Version="1.0.2" />
<PackageReference Include="OneWare.OmniSharp.Extensions.LanguageProtocol" Version="1.0.2" />

Target frameworks: netstandard2.0, netstandard2.1, net8.0, net10.0.

Releasing

Push a v* tag (or run the release workflow manually) and .github/workflows/release.yml builds, tests, packs and pushes to nuget.org. It requires a NUGET_API_SECRET repository secret.

git tag v1.0.0 && git push origin v1.0.0

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.

Request dispatch

OmniSharp.Extensions.JsonRpc.Dispatching contains the repository-owned IRequest<TResponse>, IRequestHandler<TRequest, TResponse>, Unit, IPipelineBehavior<TRequest, TResponse> and IRequestDispatcher contracts. The implementation is original code under this repository's MIT license; it does not copy, embed, downgrade or depend on MediatR.

For custom models, handlers or pipelines, replace using MediatR; with using OmniSharp.Extensions.JsonRpc.Dispatching;. Handler methods retain their existing Task<TResponse> Handle(TRequest, CancellationToken) signature; notifications return Task<Unit>. Replace direct IMediator injection with IRequestDispatcher if you used the routing dispatcher. This dispatcher only supports protocol requests (including notifications as unit-response requests), not general-purpose publish, streaming, pre/post-processors or exception-handler registrations. Custom behaviors still register through Services.AddTransient(typeof(IPipelineBehavior<,>), typeof(MyBehavior<,>)).

Routing selects the descriptor's handler within a separate DI scope for each invocation. Behaviors execute in registration order, outermost first, and may short-circuit dispatch. next() retains the current cancellation token; next(token) replaces it for downstream behaviors and the handler. Exceptions and cancellation propagate to the existing JSON-RPC/LSP/DAP routing logic. Only type adapters are cached, so handlers and scoped dependencies are never shared across requests. Source generators use the same contracts, including the new Unit type.

To validate a local build before publishing:

dotnet pack src/Client/Client.csproj -c Release -p:OneWarePackageVersion=1.0.2 -o ./artifacts/nuget
# Pack JsonRpc.Generators, JsonRpc, Protocol, Shared and Server to the same directory as well.
dotnet restore path/to/Consumer.csproj --source ./artifacts/nuget --source https://api.nuget.org/v3/index.json

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OneWare.OmniSharp.Extensions.LanguageClient:

Package Downloads
OneWare.Essentials

Essentials Needed for One Ware Plugin Development

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 0 10/10/2026
1.0.1 1,574 9/10/2026
1.0.0 126 9/10/2026