The LSAF Rest API extension makes it easy to compare and upload files to a remote LSAF server, and is more secure and more powerful than the LSAF webdav interface.
Commands added by this extension:
- LSAF Rest API: Compare (
extension.restApiCompare
) - LSAF Rest API: Upload (
extension.restApiUpload
)
To configure one or more remote endpoints, add a webdav.json
to your project root (backard-compatible with extension webdav-upload). In this file you can define the endpoints based on one or more folders.
Key | Value |
---|---|
The path, relative to webdav.json, that corresponds to the root of the WebDAV endpoint |
|
Assuming the current VScode workspace has subfolders each with corresponding distinct webdav locations
- /frontend/www
- /another-frontend/www
{
"/frontend/www": {
"url": "https://webdav.example.com/"
},
"/another-frontend/www": {
"url": "https://webdav2.example.com/",
"ignoreSSLErrors": true
}
}
Assuming the current VScode workspace root folder has multiple corresponding webdav locations:
[
{
"label": "example-test/work",
"/": {
"url": "https://example-test.com/webdav/work/programs/"
}
},
{
"label": "example-prod/work",
"/": {
"url": "https://example-prod.com/webdav/work/programs/"
}
},
{
"label": "example-other/work",
"/": {
"url": "https://example-other.com/webdav/work/programs/"
}
}
]
The first time you connect to a new remote endpoint this extension will ask for a username and password. These credentials will be stored in VScode built-in Secret Storage.