Parcourir la source

Changes to only show the root node (for now?)

main
Eric Amodio il y a 6 ans
Parent
révision
c5d68e05f5
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. +2
    -5
      src/views/nodes/repositoriesNode.ts

+ 2
- 5
src/views/nodes/repositoriesNode.ts Voir le fichier

@ -113,7 +113,7 @@ export class RepositoriesNode extends SubscribeableViewNode {
}
@debug({ args: false })
private async onActiveEditorChanged(editor: TextEditor | undefined) {
private onActiveEditorChanged(editor: TextEditor | undefined) {
if (editor == null || this._children === undefined || this._children.length === 1) {
return;
}
@ -133,10 +133,7 @@ export class RepositoriesNode extends SubscribeableViewNode {
parent = parent.getParent();
}
// HACK: Since we have no expand/collapse api, reveal the first child to force an expand
// See https://github.com/Microsoft/vscode/issues/55879
const children = await node.getChildren();
await this.view.reveal(children !== undefined && children.length !== 0 ? children[0] : node);
this.view.reveal(node);
}
catch (ex) {
Logger.error(ex);

Chargement…
Annuler
Enregistrer