Skip to content

Update lsp.config to invoke dnx from the plugin directory - #607

Merged
jasonmalinowski merged 8 commits into
dotnet:mainfrom
JoeRobich:install-roslyn-lsp-prereq
Jun 5, 2026
Merged

Update lsp.config to invoke dnx from the plugin directory#607
jasonmalinowski merged 8 commits into
dotnet:mainfrom
JoeRobich:install-roslyn-lsp-prereq

Conversation

@JoeRobich

@JoeRobich JoeRobich commented May 4, 2026

Copy link
Copy Markdown
Member

Due to the behavior of dotnet SDK resolution when running in repos which use a global.json, we are not gaurenteed that the choosen SDK will be new enough to support the dotnet dnx command which we were using to install and run the roslyn-language-server. Instead, we will ship our own global.json and configure the current working directory to be the plugin directory.

Due to the behavior of dotnet SDK resolution when running in repos which use a global.json, we are not gaurenteed that the choosen SDK will be new enough to support the `dotnet dnx` command, which we were using to install and run the roslyn-language-server. Instead, we make having roslyn-language-server installed a prerequisite so that we can invoke it directly.
Copilot AI review requested due to automatic review settings May 4, 2026 17:50
@JoeRobich
JoeRobich requested review from a team, dbreshears and timheuer as code owners May 4, 2026 17:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR changes the .NET plugin to launch Roslyn's language server as a preinstalled executable instead of using dotnet dnx, to avoid SDK-resolution problems in repositories that pin older SDKs with global.json.

Changes:

  • Replaces the C# LSP launch command in plugins/dotnet/lsp.json with direct roslyn-language-server execution.
  • Updates the plugin README to make global installation of roslyn-language-server a prerequisite.
  • Documents a new setup flow based on installing the Roslyn language server tool globally.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
plugins/dotnet/lsp.json Switches the C# LSP server command from dotnet dnx to direct roslyn-language-server execution.
plugins/dotnet/README.md Updates setup instructions and prerequisites to match the new Roslyn server launch model.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/dotnet/README.md Outdated
Comment thread plugins/dotnet/README.md Outdated
Comment thread plugins/dotnet/README.md Outdated
Comment thread plugins/dotnet/README.md
Copilot AI review requested due to automatic review settings May 4, 2026 18:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/dotnet/lsp.json Outdated

@dibarbet dibarbet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Think this is the best we can do without dotnet/sdk#51085

Comment thread plugins/dotnet/scripts/session-start.ps1 Outdated
Comment thread plugins/dotnet/hooks.json Outdated
Comment thread plugins/dotnet/scripts/session-start.sh Outdated
@AbhitejJohn

Copy link
Copy Markdown
Collaborator

@JoeRobich : Circling back on this - Is this still good to go? If so, looks like the branch needs an update from the latest main.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

👋 @JoeRobich — this PR has 3 unresolved review thread(s). When you're ready, please address the feedback and push an update; the triage bot will pick up the next state automatically. (Add the no-stale label to silence further pings.)

Copilot AI review requested due to automatic review settings June 5, 2026 20:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

Comment thread plugins/dotnet/lsp.json
Comment thread plugins/dotnet/README.md Outdated
Comment thread plugins/dotnet/global.json Outdated
Comment thread plugins/dotnet/README.md Outdated
Copilot AI review requested due to automatic review settings June 5, 2026 21:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 4

Comment thread plugins/dotnet/lsp.json
Comment thread plugins/dotnet/README.md
Comment thread plugins/dotnet/global.json
Comment thread plugins/dotnet/global.json
@JoeRobich JoeRobich changed the title Update lsp.config to invoke roslyn-language-server directly Update lsp.config to invoke dnx from the plugin directory Jun 5, 2026
Copilot AI review requested due to automatic review settings June 5, 2026 21:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

Comment thread plugins/dotnet/lsp.json
Comment thread plugins/dotnet/lsp.json
Comment thread plugins/dotnet/README.md
@jasonmalinowski
jasonmalinowski merged commit 998ae28 into dotnet:main Jun 5, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on-author PR state label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants