silverfin / silverfin-cli

Command line tool for Silverfin template development
4 stars 1 forks source link

Parts in subfolders removed from config automatically #136

Open MaaikeLeeman opened 3 months ago

MaaikeLeeman commented 3 months ago

Describe the bug I'm encountering an issue in VSCode where the config keeps automatically adjusting itself. It removes text_parts. I made a video to illustrate: https://www.loom.com/share/c99faf521d3b4094a4bebeca124bd7ee?sid=ea801996-d0ba-4450-a555-90ffad21bca8 The way it shows when I discard changes is what is saved on the main branch. Each time I discard them, a few seconds later the changes show up again. This means I can't visualize my code in a demo firm, because the parts I am working in keep getting removed from the config.

The parts that get removed are saved in subfolders :

liquid-toolchain__Channel__-_Silverfin_-_Slack

The parts in blue are retained, while the parts in red are discarded.

To Reproduce Steps to reproduce the behavior:

  1. Go to the config file of the template with parts in subfolders. The parts are automatically removed already.
  2. Click on 'discard changes'. This puts the parts back
  3. Wait a few seconds
  4. The parts get removed again automatically

Expected behavior Parts in subfolders should remain in the config

Screenshots or Pull request See description above

Desktop & CLI (please complete the following information):

Additional context There is a workaround: disable the Silverfin extension in the CLI, discard the changes to the config, commit, and then enable the extension again. The issue doesn't reoccur after that for a while.