liximomo / vscode-remote-fs

Working with any file in everywhere with vscode.
MIT License
166 stars 17 forks source link

set own label via config #108

Open c-o-m-m-a-n-d-e-r opened 1 year ago

c-o-m-m-a-n-d-e-r commented 1 year ago

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

joel6653 commented 1 year ago

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.

c-o-m-m-a-n-d-e-r commented 1 year ago

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

c-o-m-m-a-n-d-e-r commented 1 year ago

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)

joel6653 commented 1 year ago

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.

c-o-m-m-a-n-d-e-r commented 1 year ago

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