Skip to content

Commit 66eb2c6

Browse files
authored
Update Configuring Language Server documentation (#8464)
1 parent 6f43be9 commit 66eb2c6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,24 @@ This section provides instructions on how to debug locally built Roslyn and Razo
118118

119119
#### Configuring Roslyn Language Server
120120

121-
In your `settings.json` file, add the following lines:
121+
Add the following lines to your `settings.json`. Replace `<roslynRepoRoot>` with the actual path to your Roslyn repository.
122122

123123
```json
124124
"dotnet.server.waitForDebugger": true,
125125
"dotnet.server.path": "<roslynRepoRoot>/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net9.0/Microsoft.CodeAnalysis.LanguageServer.dll"
126126
```
127127

128-
Replace <roslynRepoRoot> with the actual path to your Roslyn repository.
128+
---
129129

130-
If using C# Dev Kit, you can also override the Roslyn DevKit component in your `settings.json`:
130+
**If using C# Dev Kit**, you also need to override the Roslyn DevKit component in your `settings.json`. This step is not necessary if you are not loading the Dev Kit extension.
131131
```json
132132
"dotnet.server.componentPaths": {
133133
"roslynDevKit": "<roslynRepoRoot>/artifacts/bin/Microsoft.VisualStudio.LanguageServices.DevKit/Debug/net9.0"
134134
},
135135
```
136136

137+
---
138+
137139
Or, in VSCode settings (`Ctrl+,`):
138140

139141
1. Search for `dotnet server`.
@@ -143,15 +145,15 @@ Or, in VSCode settings (`Ctrl+,`):
143145

144146
#### Configuring Razor Language Server
145147

146-
In your workspace settings.json file, add the following lines:
148+
Add the following lines to your `settings.json`. Replace `<razorRepoRoot>` with the actual path to your Razor repository.
147149

148150
```json
149151
"razor.languageServer.debug": true,
150152
"razor.languageServer.directory": "<razorRepoRoot>/artifacts/bin/rzls/Debug/net9.0",
151153
"razor.server.trace": "Debug"
152154
```
153155

154-
Replace `$razorRepoRoot` with your actual values.
156+
---
155157

156158
Or, in VSCode settings (`Ctrl+,`):
157159

0 commit comments

Comments
 (0)