Skip to content

Commit 62fd450

Browse files
author
automatic-merge
committed
Merge remote branch 'origin/master' into edge
2 parents fb69691 + 6ee62c5 commit 62fd450

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

doc/settings.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,24 @@
33
The ALS reads initial configuration from the `initializationOptions`
44
property of the `initialize` request (if any) and then updates
55
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
724
be inside an `ada` JSON object, while there is no such wrapping object
825
for `initializationOptions`. On the protocol level messages look like:
926

@@ -228,8 +245,19 @@ For more information about documentation styles see GNATdoc User's Manual.
228245

229246
## trace.server
230247

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.
233261

234262
## onTypeFormatting.indentOnly
235263

integration/vscode/ada/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
"Verbose traces are emitted for each request sent and each response received, including the message content."
432432
],
433433
"default": "off",
434-
"description": "Instructs the VS Code language client to log the communication with the Ada language server in the VS Code output window 'Ada Language Server'."
434+
"description": "Traces the communication between VS Code and the Ada language server in the 'Ada Language Server' Output view."
435435
},
436436
"gpr.trace.server": {
437437
"scope": "window",
@@ -447,7 +447,7 @@
447447
"Verbose traces are emitted for each request sent and each response received, including the message content."
448448
],
449449
"default": "off",
450-
"description": "Instructs the VS Code language client to log the communication with the GPR language server in the VS Code output window 'GPR Language Server'."
450+
"description": "Traces the communication between VS Code and the GPR language server in the 'GPR Language Server' Output view."
451451
}
452452
}
453453
}

source/ada/lsp-ada_handlers-call_hierarchy.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ package body LSP.Ada_Handlers.Call_Hierarchy is
312312
end if;
313313
end Callback;
314314

315-
Imprecise : Boolean;
315+
Imprecise : Boolean := False;
316316
Cursor : Laltools.Common.References_By_Subprogram.Cursor;
317317

318318
begin

0 commit comments

Comments
 (0)