From f8619a2a23f8fcbd24d8ae0998400a16f9cd90e1 Mon Sep 17 00:00:00 2001 From: jmoseley Date: Tue, 27 Jan 2026 08:46:45 -0800 Subject: [PATCH 1/5] Add lsp config for dotnet. --- .github/lsp.json | 12 ++++++++++++ dotnet/dotnet-tools.json | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/lsp.json create mode 100644 dotnet/dotnet-tools.json diff --git a/.github/lsp.json b/.github/lsp.json new file mode 100644 index 00000000..cae45ba4 --- /dev/null +++ b/.github/lsp.json @@ -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"] + } + } +} diff --git a/dotnet/dotnet-tools.json b/dotnet/dotnet-tools.json new file mode 100644 index 00000000..aed74347 --- /dev/null +++ b/dotnet/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "csharp-ls": { + "version": "0.21.0", + "commands": [ + "csharp-ls" + ], + "rollForward": false + } + } +} \ No newline at end of file From 3bd9308cf97333c52c80c457229712766f246209 Mon Sep 17 00:00:00 2001 From: jmoseley Date: Tue, 27 Jan 2026 12:51:59 -0800 Subject: [PATCH 2/5] fix: add rootPath for C# LSP in subdirectory --- .github/lsp.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/lsp.json b/.github/lsp.json index cae45ba4..adbfacc5 100644 --- a/.github/lsp.json +++ b/.github/lsp.json @@ -6,7 +6,8 @@ "fileExtensions": { ".cs": "csharp" }, - "projectRootFiles": ["GitHub.Copilot.SDK.sln"] + "projectRootFiles": ["GitHub.Copilot.SDK.sln"], + "rootPath": "dotnet" } } } From 014ebde7d230f52757f9aef02c50f6b2a9892126 Mon Sep 17 00:00:00 2001 From: jmoseley Date: Tue, 27 Jan 2026 13:13:19 -0800 Subject: [PATCH 3/5] fix: remove explicit rollForward to allow patch version updates --- dotnet/dotnet-tools.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotnet/dotnet-tools.json b/dotnet/dotnet-tools.json index aed74347..6f740bfe 100644 --- a/dotnet/dotnet-tools.json +++ b/dotnet/dotnet-tools.json @@ -6,8 +6,7 @@ "version": "0.21.0", "commands": [ "csharp-ls" - ], - "rollForward": false + ] } } } \ No newline at end of file From 947647ebf432dd1619274300d0cb4c9d887a5a5f Mon Sep 17 00:00:00 2001 From: jmoseley Date: Wed, 28 Jan 2026 09:39:21 -0800 Subject: [PATCH 4/5] Add support for golang lsp. --- .github/lsp.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/lsp.json b/.github/lsp.json index adbfacc5..103eb2cc 100644 --- a/.github/lsp.json +++ b/.github/lsp.json @@ -8,6 +8,15 @@ }, "projectRootFiles": ["GitHub.Copilot.SDK.sln"], "rootPath": "dotnet" + }, + "go": { + "command": "${HOME}/go/bin/gopls", + "args": ["serve"], + "fileExtensions": { + ".go": "go" + }, + "projectRootFiles": ["go.mod", "go.sum"], + "rootPath": "go" } } } From b2d8a724e39c87a5f496f6754cf6d2e76f38cc1e Mon Sep 17 00:00:00 2001 From: jmoseley Date: Wed, 28 Jan 2026 13:35:16 -0800 Subject: [PATCH 5/5] Update to simplified config. --- .github/lsp.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/lsp.json b/.github/lsp.json index 103eb2cc..a11abf6c 100644 --- a/.github/lsp.json +++ b/.github/lsp.json @@ -6,8 +6,7 @@ "fileExtensions": { ".cs": "csharp" }, - "projectRootFiles": ["GitHub.Copilot.SDK.sln"], - "rootPath": "dotnet" + "rootUri": "dotnet" }, "go": { "command": "${HOME}/go/bin/gopls", @@ -15,8 +14,7 @@ "fileExtensions": { ".go": "go" }, - "projectRootFiles": ["go.mod", "go.sum"], - "rootPath": "go" + "rootUri": "go" } } }