@ -10,14 +10,19 @@ This extension makes use of the new FileSystemProvider, added in version 1.23.0
* Easily create configurations that mirror a PuTTY session
* Easily create configurations that mirror a PuTTY session
* Have multiple SSH workspace folders at once
* Have multiple SSH workspace folders at once
## Note
There is a [bug in VSCode 1.23.0](https://github.com/Microsoft/vscode/issues/49258) related to configurations. This results in configurations that get added/removed to/from the global settings not showing up/disappearing until reload.
## Usage
## Usage
Add SSH FS configs to "sshfs.configs" in your User Settings:
Add SSH FS configs to "sshfs.configs" in your User Settings:
```js
```js
{
{
"sshfs.configs": [
"sshfs.configs": [
{
{
// Both display name and what results in ssh://serverlogs/
// Unique id, which results in ssh://serverlogs/
"name": "serverlogs",
"name": "serverlogs",
// The label to usually display (uses the name by default)
"label": "Server logs"
// Remote folder to use as root (default is /)
// Remote folder to use as root (default is /)
"root": "/var/log",
"root": "/var/log",
// Host to connect to (domain / IPv4 / IPv6)
// Host to connect to (domain / IPv4 / IPv6)
@ -81,7 +86,9 @@ Add SSH FS configs to "sshfs.configs" in your User Settings:
],
],
}
}
```
```
*You could also put them in Workspace settings, it merges instead of overrides*
*You could also put them in Workspace settings, all entries get merged together in one array.*
There's an extensive JSON schema, so it'll say when you're missing a field. Mind that when you have to use e.g. either "host" or "putty", VSCode will only say "Missing host". Check your intellisense/autocomplete for all possible options.
**The name has to be a certain format, creating a new configuration using the Command Pallet (or rightclicking the `SSH File Systems` view) is recommended.** Think of the name as an internet domain name, and you'll be more than fine.
**The name has to be a certain format, creating a new configuration using the Command Pallet (or rightclicking the `SSH File Systems` view) is recommended.** Think of the name as an internet domain name, and you'll be more than fine.
@ -99,11 +106,11 @@ This will add a Workspace folder linked to a SSH (SFTP) session:
* Also have a command to directly use a PuTTY session (**TODO**)
* Also have a command to directly use a PuTTY session (**TODO**)
* ~~Add proper JSON schema/validation for SSH FS configurations~~ **DONE**
* ~~Add proper JSON schema/validation for SSH FS configurations~~ **DONE**
* Fix bug where the Explorer shows a loading bar forever
* Fix bug where the Explorer shows a loading bar forever
* *Seems like I might've fixed this bug over time, but difficult to say*
* Fix bug where VSCode shows an error message about `no provider for ssh://NAME/`
* Fix bug where VSCode shows an error message about `no provider for ssh://NAME/`
* Allow loading (or automatically use) sessions from .ssh/config
* Allow loading (or automatically use) sessions from .ssh/config
* An icon for the extension
* An icon for the extension
* Configuring a deleted (but active) configuration should show the old config
* ~~Configuring a deleted (but active) configuration should show the old config~~ **DONE**
* Currently it'll open a new default configuration file for it
* Better error handling
* Better error handling
* Everything *seems* fine, but I haven't tested (a lot of) error situations
* Everything *seems* fine, but I haven't tested (a lot of) error situations