Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/lsp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"lspServers": {
"csharp": {
"command": "dotnet",
"args": ["tool", "run", "csharp-ls", "--solution", "GitHub.Copilot.SDK.sln"],
"fileExtensions": {
".cs": "csharp"
},
"projectRootFiles": ["GitHub.Copilot.SDK.sln"]
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The solution file path is incorrect. The LSP configuration references "GitHub.Copilot.SDK.sln" but the actual file is located at "dotnet/GitHub.Copilot.SDK.sln". Since the LSP command will likely be executed from the repository root, the path should be "dotnet/GitHub.Copilot.SDK.sln". This affects both the "--solution" argument and the "projectRootFiles" array.

Suggested change
"args": ["tool", "run", "csharp-ls", "--solution", "GitHub.Copilot.SDK.sln"],
"fileExtensions": {
".cs": "csharp"
},
"projectRootFiles": ["GitHub.Copilot.SDK.sln"]
"args": ["tool", "run", "csharp-ls", "--solution", "dotnet/GitHub.Copilot.SDK.sln"],
"fileExtensions": {
".cs": "csharp"
},
"projectRootFiles": ["dotnet/GitHub.Copilot.SDK.sln"]

Copilot uses AI. Check for mistakes.
}
}
}
13 changes: 13 additions & 0 deletions dotnet/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharp-ls": {
"version": "0.21.0",
"commands": [
"csharp-ls"
],
"rollForward": false
}
Comment on lines 5 to 10
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The dotnet-tools.json manifest is missing the required "packageId" field for the csharp-ls tool. The packageId field specifies the NuGet package identifier and is required for dotnet to restore and run the tool correctly. Without this field, the tool installation will fail.

Copilot uses AI. Check for mistakes.
}
}
Loading