Disable 'Always pass on command line' pref by default

In most cases it seems we don't want to explicitly pass
scenario variables via the -X swicth when set to the
default value defined in the .gpr project.

For eng/ide/gnatstudio#474
This commit is contained in:
Anthony Leonardo Gracio
2025-01-08 10:27:22 +00:00
parent 3a3bca9e04
commit c600878df4

View File

@@ -1781,13 +1781,15 @@ package body GPS.Kernel.Preferences is
Default => True,
Path => -"GNAThub");
Explicit_Default_Value := Manager.Create_Invisible_Pref
(Name => "Scenario-Explicit-Default-Value",
Label => -"Always pass on command line",
Doc =>
-("When False, only add -X switches when a scenario variable is "
& "not set to its default value."),
Default => True);
Explicit_Default_Value :=
Manager.Create_Invisible_Pref
(Name => "Scenario-Explicit-Default-Value",
Label => -"Always pass on command line",
Doc =>
-("When True, it will add explicit -X switches "
& "for each scenario variable, even when set to its "
& "default value"),
Default => False);
LSP_Use_Snippets := Kernel.Get_Preferences.Create
(Name => "LSP-Completion-Use-Snippets",