mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
998ae28063
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.
22 lines
430 B
JSON
22 lines
430 B
JSON
{
|
|
"lspServers": {
|
|
"csharp": {
|
|
"command": "dnx",
|
|
"args": [
|
|
"roslyn-language-server",
|
|
"--yes",
|
|
"--prerelease",
|
|
"--",
|
|
"--stdio",
|
|
"--autoLoadProjects"
|
|
],
|
|
"cwd": "${PLUGIN_ROOT}",
|
|
"fileExtensions": {
|
|
".cs": "csharp",
|
|
".razor": "aspnetcorerazor",
|
|
".cshtml": "aspnetcorerazor"
|
|
},
|
|
"warmupTimeoutMs": 120000
|
|
}
|
|
}
|
|
} |