Skip to content

config.SetGlobalOption no longer allows writing to settings.json #4041

@nimishjha

Description

@nimishjha

Description

In #3618, the ability for plugins to save settings was removed entirely. Surely this should be configurable, as some plugins depend on this capability?

The relevant code from action/command.go is below. Why not add a third argument writeToFile that gets passed through to SetGlobalOption instead of hard-coding false? I'd be happy to submit a PR.

func SetGlobalOptionPlug(option, value string) error {
        return SetGlobalOption(option, value, false)
}

Environment

  • Version:
  • OS:
  • Terminal:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions