Add a "Reload configurations" command

feature/search
Kelvin Schoofs 6 years ago
parent e36472da90
commit 0061a08c4c

@ -71,6 +71,11 @@
"command": "sshfs.delete",
"title": "Delete configuration",
"category": "SSH FS"
},
{
"command": "sshfs.reload",
"title": "Reload configurations",
"category": "SSH FS"
}
],
"menus": {
@ -135,6 +140,12 @@
"configuration": {
"title": "SSH FS Configuration",
"properties": {
"sshfs.configpaths": {
"default": [],
"description": "Location of JSON files to load configs from",
"type": "array",
"items": "string"
},
"sshfs.configs": {
"definitions": {
"fields": {
@ -436,4 +447,4 @@
"ssh2": "^0.8.2",
"winreg": "^1.2.4"
}
}
}

@ -63,5 +63,7 @@ export function activate(context: vscode.ExtensionContext) {
registerCommand('sshfs.configure', (name?: string) => pickAndClick(manager.commandConfigure, name));
registerCommand('sshfs.delete', (name?: string) => pickAndClick(manager.commandDelete, name));
registerCommand('sshfs.reload', loadConfigs);
vscode.window.createTreeView('sshfs-configs', { treeDataProvider: manager });
}

Loading…
Cancel
Save