Skip to content

Commit c67a30e

Browse files
committed
action/command: On reload prevent overwriting volatile settings
1 parent c51f848 commit c67a30e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/action/command.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ func reloadRuntime(reloadPlugins bool) {
361361
parsedSettings := config.ParsedSettings()
362362
defaultSettings := config.DefaultAllSettings()
363363
for k := range defaultSettings {
364+
if _, ok := config.VolatileSettings[k]; ok {
365+
// reload should not override volatile settings
366+
continue
367+
}
368+
364369
if _, ok := parsedSettings[k]; ok {
365370
err = doSetGlobalOptionNative(k, parsedSettings[k])
366371
} else {

0 commit comments

Comments
 (0)