Skip to content

Commit 1b09fc9

Browse files
committed
docs: how to log messages between code and ls
1 parent 6d001fc commit 1b09fc9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/language-server/configure-a-client.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,15 @@ The language server requests [settings](../user-guide/settings.md) via the [`wor
1212

1313
This list of [language client implementations][languageclients] may be a helpful starting point. You may also want to look at [existing clients](./existing-clients.md).
1414

15+
### Log messages sent by VS Code to the server
16+
17+
If you're having trouble it might be helpful to compare your client with VS Code's. To log the messages sent between VS Code and the language server, add this to [your `settings.json`](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) (thank you to [Stefan Schlichthärle](https://www.sscit.de/2021/04/15/trace-lsp-in-vscode.html)).
18+
19+
```json
20+
"some-sass.trace.server": "verbose"
21+
```
22+
23+
Now you can open a Sass file, then open the Output panel (View menu -> Output) to see the messages.
24+
1525
[lsp]: https://microsoft.github.io/language-server-protocol/
1626
[languageclients]: https://microsoft.github.io/language-server-protocol/implementors/tools/

0 commit comments

Comments
 (0)