antfu / vscode-file-nesting-config

Config of File Nesting for VS Code
MIT License
3.11k stars 173 forks source link

custom rules lost after update config #218

Open Krysl opened 4 months ago

Krysl commented 4 months ago

Describe the bug

I have some custom rules in %AppData%\Code\User\settings.json-explorer.fileNesting.patterns after update config by this extension, the custom rules are gone.

Reproduction

  1. add some custom rule in %AppData%\Code\User\settings.json, under explorer.fileNesting.patterns
  2. open Command Palette and run command File Nesting Updater: Update config now
  3. you will see the custom rule gone

System Info

System:
    OS: Windows 10 10.0.19045

Used Package Manager

n/a

Validations

Contributions

joshistoast commented 1 month ago

Can confirm this happens for me too, annoying when I want to extend it. Maybe a comment can be added to the end for the updater to ignore that line? Better yet it should only replace or update what's in the config as opposed to that whole section.