Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Published package for the roslyn Microsoft.CodeAnalysis.LanguageServer feature #71474

Closed
zaphar opened this issue Jan 3, 2024 · 2 comments
Closed
Labels
Area-IDE Feature Request Resolution-Answered The question has been answered untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@zaphar
Copy link

zaphar commented Jan 3, 2024

Summary

Currently it looks like the only documented way to obtain the C# Dev Kit and then have it download it. The assemblies don't appear to be published publicly anywhere. Ideally this would be published in NuGet so other lsp supporting editors could use it just like Omnisharp.

Background and Motivation

Support for the new LSP outside of VSCode. Wider usage of the LSP. Further adoption of the C# language.

Proposed Feature

Publish the Microsoft.CodeAnalysis.LanguageServer assembly publicly somewhere.

This was the only issue type I could find for this so hope it's the right category.

@zaphar
Copy link
Author

zaphar commented May 17, 2024

Any chance this could get a look from someone? I would even be happy to work on it if I get some guidance. The lack of a published assembly makes the C# IDE experience much worse in non vs-code editors which sort of defeats one of the main benefits of having an LSP.

@dibarbet
Copy link
Member

dibarbet commented Jun 19, 2024

@zaphar we haven't published the packages to nuget.org, but they are available on this azdo feed, for example https://dev.azure.com/azure-public/vside/_artifacts/feed/vs-impl/NuGet/Microsoft.CodeAnalysis.LanguageServer.win-x64/overview/4.11.0-3.24318.7

The package name is Microsoft.CodeAnalysis.LanguageServer.<platform_name>. There is also a Microsoft.CodeAnalysis.LanguageServer.neutral package that should work on any platform (though doesn't have heavy testing of it).

There is also a Microsoft.CodeAnalysis.LanguageServer package, but it is no longer updated should be considered deprecated.

If you're taking a dependency on the package, I recommend saving them to your own feed as versions are not kept around forever.

We don't have any explicit instructions on consuming the language server, but hopefully the C# extension code that consumes it might be helpful

  1. Restoring the packages - https://github.com/dotnet/vscode-csharp/blob/main/tasks/offlinePackagingTasks.ts#L71
  2. Starting the server - https://github.com/dotnet/vscode-csharp/blob/main/src/lsptoolshost/roslynLanguageServer.ts#L493

Closing this issue, but feel free to ping me directly on this if you have other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request Resolution-Answered The question has been answered untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants