mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-27 13:16:59 +00:00
explorer - always expand single root folder
This commit is contained in:
@@ -722,10 +722,12 @@ export class ExplorerView extends CollapsibleView {
|
||||
const rootAndTargets = { root, resource: root.resource, options: { resolveTo: [] } };
|
||||
targetsToResolve.push(rootAndTargets);
|
||||
});
|
||||
let targetsToExpand: URI[] = [];
|
||||
|
||||
let targetsToExpand: URI[] = [];
|
||||
if (this.settings[ExplorerView.MEMENTO_EXPANDED_FOLDER_RESOURCES]) {
|
||||
targetsToExpand = this.settings[ExplorerView.MEMENTO_EXPANDED_FOLDER_RESOURCES].map((e: string) => URI.parse(e));
|
||||
} else if (this.model.roots.length === 1) {
|
||||
targetsToExpand = this.model.roots.map(root => root.resource); // always expand single root folder
|
||||
}
|
||||
|
||||
// First time refresh: Receive target through active editor input or selection and also include settings from previous session
|
||||
|
||||
Reference in New Issue
Block a user