Browse Source

Fixes issue where layout changes didn't update

main
Eric Amodio 7 years ago
parent
commit
d45b270e4c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/views/gitExplorer.ts

+ 2
- 2
src/views/gitExplorer.ts View File

@ -238,9 +238,9 @@ export class GitExplorer implements TreeDataProvider {
this.clearRoot();
}
this.setRoot(await this.getRootNode(window.activeTextEditor));
const requiresRefresh = this.setRoot(await this.getRootNode(window.activeTextEditor));
if (force) {
if (requiresRefresh || force) {
this.refresh(RefreshReason.ViewChanged);
}
}

Loading…
Cancel
Save