Skip to content

Commit 0b90295

Browse files
committed
Document the nesting of the 'indentOnly' setting
1 parent 3716009 commit 0b90295

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/settings.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,24 @@ This option controls if the `textDocument/onTypeFormatting` request only indents
333333
it additionally tries to format the previous node. By default, this option is enabled, that is,
334334
`textDocument/onTypeFormatting` only indents new lines.
335335

336+
In ALS config files, this setting must be specified in a nested form:
337+
338+
```json
339+
{
340+
"onTypeFormatting": {
341+
"indentOnly": true
342+
}
343+
}
344+
```
345+
346+
Conversely, in VS Code this settings can be set without nesting:
347+
348+
```json
349+
{
350+
"ada.onTypeFormatting.indentOnly": true,
351+
}
352+
```
353+
336354
### useGnatformat
337355

338356
This option controls the formatting provider for the `textDocument/formatting`,

0 commit comments

Comments
 (0)