Fix bug that breaks saving configs using the "config editor"

pull/64/head
Kelvin Schoofs 6 years ago
parent c29138a355
commit 88de963ebf

@ -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<string | undefined>;
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 || [];

Loading…
Cancel
Save