Skip to content

feat(csharp-ls-windows): spawn csharp-ls.exe with DOTNET_ROOT (#3536) - #5152

Closed
kyle-sexton wants to merge 5 commits into
mainfrom
cursor/3536-csharp-ls-windows-37e9
Closed

kyle-sexton wants to merge 5 commits into
mainfrom
cursor/3536-csharp-ls-windows-37e9

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Summary

Closes #3536.

Refs #3535.

plugins/csharp-ls-windows keeps csharp-ls, spawns absolute csharp-ls.exe with shell: false, sets DOTNET_ROOT from the dotnet host when unset, and refuses .cmd. Does not switch to Roslyn.

Supersedes draft #5135.

Test plan

  • 5/5 contract tests; skill gate PASS
Open in Web Open in Cursor 

Keep the csharp-ls dotnet global tool. The adapter resolves csharp-ls.exe
from PATH, sets DOTNET_ROOT from the dotnet host when it is unset, and
refuses a .cmd shim.

Co-authored-by: Kyle Sexton <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a "## Fix" section. State the concrete change and how it addresses the problem.
  • Missing a "## Verification" section. Record concrete evidence the change works (commands, gates, output).
  • Missing a "## Related" section. List related PRs, ADRs, or decision-log entries this PR does not close.

Edit the body and this comment updates itself on the next run.

@kyle-sexton kyle-sexton changed the title csharp-ls-windows: spawn csharp-ls.exe with DOTNET_ROOT (#3536) feat(csharp-ls-windows): spawn csharp-ls.exe with DOTNET_ROOT (#3536) Sep 28, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Closing by operator decision (2026-09-28): the operator's guidance on #3536 is to target csharp-ls >= 0.24.0 and write no shim, and csharp-ls.exe is native on Windows. This PR adds a new plugin and a spawn wrapper for a DOTNET_ROOT problem nobody has observed. The remaining #3536 work is manual Windows QA.

@kyle-sexton
kyle-sexton deleted the cursor/3536-csharp-ls-windows-37e9 branch September 29, 2026 03:47
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.

C# LSP for Claude Code: validate csharp-ls on a real multi-project Windows solution and document install

2 participants