Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate configuration to enable only some features to work when formatting on save #277

Open
PauliusKu opened this issue Dec 4, 2024 · 0 comments · May be fixed by #281
Open

Separate configuration to enable only some features to work when formatting on save #277

PauliusKu opened this issue Dec 4, 2024 · 0 comments · May be fixed by #281
Assignees
Labels
enhancement New feature or request

Comments

@PauliusKu
Copy link
Collaborator

PauliusKu commented Dec 4, 2024

Logic:

  1. inside ConfigurationManager2.getConfig
  2. if formatter setting useSeparateOnSaveSettings is true then
  3. if currently setting onSave is true then
  4. if ./ablFormatter/onSaveConfig.json file is present then
  5. use this json config as primary config

Basically similar logic to what we have with current setting override feature

Also, we may skip implementing a separate setting useSeparateOnSaveSettings, but in that case we need to read the file once and implement a listener for changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant