|
3 | 3 | The ALS reads initial configuration from the `initializationOptions`
|
4 | 4 | property of the `initialize` request (if any) and then updates
|
5 | 5 | the configuration with each `workspace/didChangeConfiguration`
|
6 |
| -notification. Any setting in `workspace/didChangeConfiguration` should |
| 6 | +notification. |
| 7 | + |
| 8 | +In the context of Visual Studio Code, configuration settings can be set in the |
| 9 | +workspace `settings.json` file or the [multi-root workspace |
| 10 | +file](https://code.visualstudio.com/docs/editor/multi-root-workspaces) by |
| 11 | +prefixing each setting name with `ada.`, e.g. |
| 12 | + |
| 13 | +```json |
| 14 | +{ |
| 15 | + "ada.projectFile": "right_project.gpr", |
| 16 | + "ada.scenarioVariables": { |
| 17 | + "LIBRARY_TYPE": "static" |
| 18 | + }, |
| 19 | + "ada.onTypeFormatting.indentOnly": true |
| 20 | +} |
| 21 | +``` |
| 22 | + |
| 23 | +At the protocol level, any setting in `workspace/didChangeConfiguration` should |
7 | 24 | be inside an `ada` JSON object, while there is no such wrapping object
|
8 | 25 | for `initializationOptions`. On the protocol level messages look like:
|
9 | 26 |
|
@@ -228,8 +245,19 @@ For more information about documentation styles see GNATdoc User's Manual.
|
228 | 245 |
|
229 | 246 | ## trace.server
|
230 | 247 |
|
231 |
| -This option controls the tracing of the communication between VSCode and the Ada language server. |
232 |
| -The separate setting `gpr.trace.server` controls tracing for GPR language server. |
| 248 | +This option controls the tracing of the communication between VS Code and the Ada |
| 249 | +language server. It causes the client to trace each message sent and received |
| 250 | +to/from the Ada language server in the `Ada Language Server` Output view. |
| 251 | + |
| 252 | +The possible values are: |
| 253 | + |
| 254 | +* `off`: no tracing. |
| 255 | +* `messages`: brief traces are emitted for each request sent and each response received. |
| 256 | +* `verbose`: verbose traces are emitted for each request sent and each response received, including the message content. |
| 257 | + |
| 258 | +On the server side this option does not trigger any additional logging. |
| 259 | + |
| 260 | +An equivalent setting `gpr.trace.server` exists for tracing the communcation between VS Code and the GPR language server. |
233 | 261 |
|
234 | 262 | ## onTypeFormatting.indentOnly
|
235 | 263 |
|
|
0 commit comments