Description
Environment
- OS and Version: N/A
- IDE Version: N/A
- Ada & SPARK Extension Version: N/A
Bug Summary and Reproducer
I have a few questions in anticipation of the inclusion of gnatformat
in the ALS:
When I look in settings.md, it says by default this option is enabled. I also noticed in package.json, that the default for VSCode seems to be "true", which matches the description in settings.md. However, when looking in lsp-ada_configurations.ads, it appears the default value in the Configuration
type sets Use_Gnatformat
to false. Is this a discrepancy or is Use_Gnatformat
defaulted to true elsewhere?
Is the expectation that the editor will pull these settings from the project file in order to adjust the its internal indentation and continuation amounts? If so, is there a plan for ALS to support a command for extracting this information from the project file? Also, when useGnatFormat
is false, would it also support extracting similar settings from the Pretty_Printer section?
It seems that the settings provided in Format
are almost identical to the settings you'd find in .editorconfig
. Was there a reason to add a Format
section, rather than use an existing .editorconfig
?
Configuration and Logs
N/A
Other VS Code Extensions
No response
Additional context
No response