diff --git a/src/manager.ts b/src/manager.ts index c6ad1c9..7627728 100644 --- a/src/manager.ts +++ b/src/manager.ts @@ -88,7 +88,7 @@ function createConfigFs(manager: Manager): SSHFileSystem { } config.name = name; const loc = await updateConfig(name, config); - this.onDidChangeTreeDataEmitter.fire(); + manager.fireConfigChanged(); let dialog: Thenable; if (loc === vscode.ConfigurationTarget.Global) { dialog = vscode.window.showInformationMessage(`Config for '${name}' saved globally`, 'Connect', 'Okay'); @@ -149,6 +149,9 @@ export class Manager implements vscode.FileSystemProvider, vscode.TreeDataProvid }); loadConfigs(); } + public fireConfigChanged(): void { + this.onDidChangeTreeDataEmitter.fire(); + } public getStatus(name: string): ConfigStatus { const config = getConfig(name); const folders = vscode.workspace.workspaceFolders || [];