.code-workspace
filesThis extension was created to connect to a WebDAV server using a .code-workspace
file. Configuration is also possible in the user settings.
Security Warning
This extension trusts ANY configuration even in
untrusted workspaces
. This means that this extension will connect to any server which is configured in the current workspace settings and added to the workspace.
Passwords
are stored as plain text. Anyone who can access your workspace config will also be able to read the password. Use a different extension if you want to store the password securely.
basic
or digest
authentication with username and passwordhttps
by default (http
is also supported)You have to manually create a example.code-workspace
file.
The following configuration (example.code-workspace
) will connect to example.com
via https
without any authentication (no username/passwort).
{
"folders": [
{
"uri": "webdav://my-folder-id"
}
],
"settings": {
"jonpfote.webdav-folders": {
"my-folder-id": {
"host": "example.com",
// authentication is optional (see below)
}
}
}
}
The object "jonpfote.webdav-folders": { ... }
can also be put in User Settings (JSON)
. Look at this example:
example.code-workspace
{
"folders": [
{
"uri": "webdav://my-folder-id"
}
// multiple folders at the same time are possible
]
}
settings.json
{
"settings": {
"jonpfote.webdav-folders": { ... }
}
}
basic
or digest
authentication"my-folder-id": {
"host": "example.com",
"authtype": "basic", // "digest" is also possible
"username": "my-username",
"password": "secret-password-as-plain-text"
}
https
/ Use a http
connection"my-folder-id": {
"host": "example.com",
"ssl": false, // default: true
}
Use "host": "example.com:1234"
in the settings.
This extension uses a JS library called webdav
(v4.11.2) by @perry-mitchell
. It is licensed under MIT an can be viewed at github.com/perry-mitchell/webdav-client