Skip to content

Commit 5fd977a

Browse files
committed
Document logThreshold setting and expose it in VS Code
1 parent 0b90295 commit 5fd977a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

doc/settings.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,3 +357,9 @@ This option controls the formatting provider for the `textDocument/formatting`,
357357
`textDocument/rangeFormatting` and `textDocument/onTypeFormatting` request. By default, this option
358358
is enabled and ALS uses GNATformat as its formatting provider. If disabled, GNATpp is used instead.
359359

360+
### logThreshold
361+
362+
Controls the maximum number of trace files preserved in the ALS log directory (which defaults to `~/.als`).
363+
When this threshold is reached, old trace files get deleted automatically.
364+
The default number of preserved trace files is `10`.
365+
See the documentation on [ALS Traces](doc/traces.md) for more information.

integration/vscode/ada/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,12 @@
470470
],
471471
"default": "off",
472472
"description": "Traces the communication between VS Code and the GPR language server in the 'GPR Language Server' Output view."
473+
},
474+
"ada.logThreshold": {
475+
"scope": "window",
476+
"type": "integer",
477+
"default": null,
478+
"description": "Controls the maximum number of trace files preserved in the ALS log directory (which defaults to `~/.als`). When this threshold is reached, old trace files get deleted automatically. The default number of preserved trace files is `10`."
473479
}
474480
}
475481
}

testsuite/settings-doc/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ python3 get-schema-properties.py <"$1/integration/vscode/ada/schemas/als-setting
1616
grep 'if Name = "[^"]\+"' "$1/source/ada/lsp-ada_configurations.adb" | sed -e 's/.*"\([^"]\+\)"/\1/' >impl.txt
1717
# Remove the following settings from the implementation list because they are
1818
# either hidden, or nested
19-
exclude="logThreshold onTypeFormatting indentOnly"
19+
exclude="onTypeFormatting indentOnly"
2020
for exc in $exclude; do
2121
echo "$(grep -v "$exc" <impl.txt)" >impl.txt
2222
done

0 commit comments

Comments
 (0)