Fix configure command using actualized config

pull/208/head
Kelvin Schoofs 4 years ago
parent 1e3921c7db
commit d0a853b42d

@ -284,7 +284,7 @@ export class Manager implements vscode.TreeDataProvider<string | FileSystemConfi
}
public getChildren(element: string | FileSystemConfig = ''): vscode.ProviderResult<(string | FileSystemConfig)[]> {
if (typeof element === 'object') return []; // FileSystemConfig, has no children
const configs = this.fileSystems.map(fs => fs.config);
const configs = this.fileSystems.map(fs => fs.config).map(c => c._calculated || c);
configs.push(...getConfigs().filter(c => !configs.find(fs => c.name === fs.name)));
const matching = configs.filter(({ group }) => (group || '') === element);
matching.sort((a, b) => a.name > b.name ? 1 : -1);

Loading…
Cancel
Save