vscode-remote-fs icon indicating copy to clipboard operation
vscode-remote-fs copied to clipboard

set own label via config

Open c-o-m-m-a-n-d-e-r opened this issue 3 years ago • 5 comments

create the ability to set a custom label via "label" in user config for a remote folder

c-o-m-m-a-n-d-e-r avatar Nov 22 '22 08:11 c-o-m-m-a-n-d-e-r

Would this give us the ability to label the folder in the Explorer in the left pane? I have folders that I work on at the same time, but they live on different domains. As it is now, they are both top-level labelled "Wyoming" -- which doesn't help at all. The name given in the "remotefs.remote" section of the config file is not used in the Explorer label, but I wish it could be.

joel6653 avatar Feb 17 '23 02:02 joel6653

exactly ... had the same problem so i did this 😃

c-o-m-m-a-n-d-e-r avatar Feb 17 '23 05:02 c-o-m-m-a-n-d-e-r

look what i have changed ... do this locally ... quite simple.

after you did this change you can add "label" in the config for naming it in the left pane (explorer)

c-o-m-m-a-n-d-e-r avatar Feb 17 '23 06:02 c-o-m-m-a-n-d-e-r

OTOH, since I posted my question, I discovered that I could set "remotefs.rootLabel" in the config file to "${name}" to achieve what I wanted. Thanks for your help and response, though.

joel6653 avatar Feb 17 '23 12:02 joel6653

your welcome, rootLabel wasn't what i wanted so i decided to make these change :-)

c-o-m-m-a-n-d-e-r avatar Feb 17 '23 13:02 c-o-m-m-a-n-d-e-r