Skip to content

Commit 40f59ba

Browse files
authored
mention devkit component in local server path (#8373)
2 parents b1fdfea + 1b8a928 commit 40f59ba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ This section provides instructions on how to debug locally built Roslyn and Razo
115115

116116
#### Configuring Roslyn Language Server
117117

118-
In your workspace `settings.json` file, add the following lines:
118+
In your `settings.json` file, add the following lines:
119119

120120
```json
121121
"dotnet.server.waitForDebugger": true,
@@ -124,11 +124,19 @@ In your workspace `settings.json` file, add the following lines:
124124

125125
Replace <roslynRepoRoot> with the actual path to your Roslyn repository.
126126

127+
If using C# Dev Kit, you can also override the Roslyn DevKit component in your `settings.json`:
128+
```json
129+
"dotnet.server.componentPaths": {
130+
"roslynDevKit": "<roslynRepoRoot>/artifacts/bin/Microsoft.VisualStudio.LanguageServices.DevKit/Debug/net9.0"
131+
},
132+
```
133+
127134
Or, in VSCode settings (`Ctrl+,`):
128135

129136
1. Search for `dotnet server`.
130137
2. Set `dotnet.server.path` to the path of your Roslyn DLL.
131138
3. Enable `dotnet.server.waitForDebugger`.
139+
4. (Optional) - add the component to `dotnet.server.componentPaths` (see above).
132140

133141
#### Configuring Razor Language Server
134142

0 commit comments

Comments
 (0)