liximomo / vscode-remote-fs

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

Remote Folder name in Explorer: How to change? #47

Closed tzcole closed 5 years ago

tzcole commented 5 years ago

Hi,

First off, Great extension. Just moved over to VScode, and this plugin is a must for my workflow.

One thing I'm having trouble with is I have a workspace with multiple remote server folders. The name for any remote folder as listed under Explorer uses <username> (Remote). Since my username is the same across servers, all my remote folders have the same name. It would be nice if there were a parameter in the remote server config which could uniquely identify the remote server. Perhaps fail back to either the label defined in User Settings for the remote server or even the hostname parameter.

Cheers, tzcole

liximomo commented 5 years ago

There is a parameter named name.

tzcole commented 5 years ago

I tried adding a name parameter, but it's not taking. Tried unloading/re-loading extension, closing/opening vscode, removing and re-adding the remote folder. It's still showing the remote folders display as <username> (Remote).

BTW, I'm using Remote FS 0.0.12.

Here is my User Settings block.

"remotefs.remote": { "stats": { "scheme": "sftp", "host": "my.hostname.com", "username": "myuserid", "privateKeyPath": "/Users/xxx/.ssh/id_rsa", "name": "myname", "rootPath": "/opt/home/myuserid" },

Am I missing something?

Cheers, tzcole

liximomo commented 5 years ago

There is a new setting remotefs.rootLabel in v0.0.13

tzcole commented 5 years ago

That works great now. Thank you very much.

Cheers, tzcole

liximomo commented 5 years ago

Thanks for the support.

Naramsim commented 5 years ago

Just for clarity: you can set the name dynamically with this rootLabel

"remotefs.rootLabel": "${name} — (Remote)",
igorcafe commented 2 years ago

I tried adding this to my VSCode settings.json:

"remotefs.remote": {
    "10.0.1.116": {
        "name": "1.116",
        "scheme": "sftp",
        "host": "10.0.1.116",
        "username": "root",
        "rootPath": "/usr/local/telco-data/slaview/customfilesOp/scripts"
    },
    "10.0.1.117": {
        "name": "1.117",
        "scheme": "sftp",
        "host": "10.0.1.117",
        "username": "root",
        "rootPath": "/usr/local/telco-data/slaview/customfilesOp/scripts"
    },
},
"remotefs.rootLabel": "${name} — (Remote)",

But it still shows this after reloading: image

Naramsim commented 2 years ago

This extension is bit outdated, I moved to SSH FS

ErtyHackward commented 1 year ago

SSH FS does not work with ftp.

I tried adding this to my VSCode settings.json:

"remotefs.remote": {
  "10.0.1.116": {
      "name": "1.116",
      "scheme": "sftp",
      "host": "10.0.1.116",
      "username": "root",
      "rootPath": "/usr/local/telco-data/slaview/customfilesOp/scripts"
  },
  "10.0.1.117": {
      "name": "1.117",
      "scheme": "sftp",
      "host": "10.0.1.117",
      "username": "root",
      "rootPath": "/usr/local/telco-data/slaview/customfilesOp/scripts"
  },
},
"remotefs.rootLabel": "${name} — (Remote)",

But it still shows this after reloading: image

You need to remove existing folders from workspace and re-add them (ctrl+shift+p)