vsg-bridge-ls/doc/configuration.md

1.3 KiB

Bridge configuration

The bridge loads optional TOML configuration in this order:

  1. $XDG_CONFIG_HOME/vsg-bridge-ls/config.toml, or ~/.config/vsg-bridge-ls/config.toml when XDG_CONFIG_HOME is unset;
  2. vsg-bridge-ls.toml in the process working directory;
  3. explicit command-line options.

Each later layer overrides values explicitly set by an earlier layer. Missing files are ignored. An unreadable file, invalid TOML, or unknown key stops startup with the responsible path instead of silently using unexpected settings.

vsg_configuration = ["/absolute/path/to/vsg.yaml"]
allow_browser_action = false
experimental_rule_fix = false
experimental_multi_rule_line_fix = false
debug_mode = false

The project file can explicitly set a Boolean to false to disable a setting enabled in the user file. A command-line Boolean flag enables its setting over both files. One or more command-line --configuration PATH values replace the complete vsg_configuration list from TOML.

allow_browser_action is disabled by default because the corresponding code action asks the LSP client to open an external HTTPS URL. It is equivalent to the explicit --allow-browser-action flag. Documentation URLs remain visible in diagnostics and hover when browser actions are disabled.