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

Consume per-runtime language servers #6264

Conversation

jasonmalinowski
Copy link
Member

To keep our package size more manageable, we now create a separate language server package per runtime.

This consumes dotnet/roslyn#69786.

@jasonmalinowski jasonmalinowski requested a review from a team as a code owner August 31, 2023 22:40
@jasonmalinowski jasonmalinowski self-assigned this Aug 31, 2023
To keep our package size more manageable, we now create a separate
language server package per runtime. This changes our download tasks
to adjust for this and updates to a new Roslyn version that has separate
packages.
@jasonmalinowski jasonmalinowski force-pushed the consume-separate-language-servers-per-rid branch from 6bc81ae to 02b3b37 Compare September 1, 2023 21:41
async function installRoslyn(packageJSON: any, platformInfo?: PlatformInformation) {
const roslynVersion = packageJSON.defaults.roslyn;
const packagePath = await acquireNugetPackage('Microsoft.CodeAnalysis.LanguageServer', roslynVersion);
gulp.task('fetchAllRoslynPlatformPackages', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the contributing docs to mention that you should run this task to update roslyn instead of the 'installDependencies' task?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, right.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not only did I update the documentation, I also updated this to run installDependencies after. And renamed it to "updateRoslynVersion" which is just a better name, honestly.

We fetch these from an upstream feed that has authenticated feeds
as upstreams of it; this is an easy way to ensure everything is
cached properly for all platforms.
@jasonmalinowski jasonmalinowski force-pushed the consume-separate-language-servers-per-rid branch from fff9ea1 to 4ea6193 Compare September 2, 2023 01:02
@jasonmalinowski jasonmalinowski merged commit 655eb27 into dotnet:main Sep 2, 2023
7 checks passed
@jasonmalinowski jasonmalinowski deleted the consume-separate-language-servers-per-rid branch September 2, 2023 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants