Skip to content

Commit a76dffc

Browse files
authored
Add lsp config for dotnet. (#234)
* Add lsp config for dotnet. * fix: add rootPath for C# LSP in subdirectory * fix: remove explicit rollForward to allow patch version updates * Add support for golang lsp. * Update to simplified config. * Update to new format.
1 parent 2fa6a92 commit a76dffc

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/lsp.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"lspServers": {
3+
"csharp": {
4+
"command": "dotnet",
5+
"args": [
6+
"tool",
7+
"run",
8+
"roslyn-language-server",
9+
"--stdio",
10+
"--autoLoadProjects"
11+
],
12+
"fileExtensions": {
13+
".cs": "csharp"
14+
},
15+
"rootUri": "dotnet"
16+
},
17+
"go": {
18+
"command": "${HOME}/go/bin/gopls",
19+
"args": ["serve"],
20+
"fileExtensions": {
21+
".go": "go"
22+
},
23+
"rootUri": "go"
24+
}
25+
}
26+
}

dotnet/.config/dotnet-tools.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"roslyn-language-server": {
6+
"version": "5.5.0-2.26078.4",
7+
"commands": [
8+
"roslyn-language-server"
9+
],
10+
"rollForward": true
11+
}
12+
}
13+
}
14+

0 commit comments

Comments
 (0)