refactor: configurable remote name for inserting snippets
This MR changes how we determine which remote to use. Originally when there were multiple remotes and the user didn't specify one in the settings, we just used one. Now we ask users which remote they want to use.
This is the first out of two MRs, this creates the plumbing for setting the preferred remote and adds it to one command, the second MR will use this plumbing for all commands.
On the video you see:
- First you see an empty
settings.json
file - Then we invoke the insert snippet command
- There are multiple remotes and we choose
origin
- The command works as expected and we insert a snippet
- You see the preferred remote being added to the settings
Related to #459 (closed)
Edited by Tomas Vik