oleg-shilo / Favorites.vscode

VSCode extension for managing Favorites
MIT License
23 stars 6 forks source link

Enhancement: Ability to Remove the Default List #27

Closed ratkinson-prh closed 2 years ago

ratkinson-prh commented 2 years ago

I have a number of list files, e.g. Workspaces, Code Config, etc. I noticed that if I delete 'Default.list.txt' it's automatically recreated. I'm guessing this is mandatory.

Can this be changed so that one of the other lists becomes the default so I can delete the Default list, or even just hide it from the explorer view.

Thanks, Rob.

oleg-shilo commented 2 years ago

Done, please update the extension.

Now you can simply rename Default.list.txt (e.g. My List.list.txt ) and the name change will be reflected in VSCode:

image

ratkinson-prh commented 2 years ago

Thanks Oleg, that works great.

Out of interest, I spotted this change in Tree View. Is the question mark intended or a typo?

items?.forEach(item => {

oleg-shilo commented 2 years ago

:) It is intended. If items is null there should not be any iterations. This code is an equivalent of:

if (items)
    items.forEach(item => {...
GitMensch commented 2 years ago

Done and released, so can be closed, can't it?

ratkinson-prh commented 2 years ago

Apologies for not replying straight away. I tested the change back in December, and it works perfectly thanks.