Skip to content

Commit

Permalink
fix: refresh source control view less frequently
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Apr 5, 2022
1 parent 295937a commit b90b1a5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/ui/sidebar/gitView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@
let changesOpen = true;
let stagedOpen = true;
let loading = true;
const debRefresh = debounce(() => {
if (plugin.settings.refreshSourceControl) {
refresh();
}
}, 1000);
const debRefresh = debounce(
() => {
if (plugin.settings.refreshSourceControl) {
refresh();
}
},
7000,
true
);
let showTree = plugin.settings.treeStructure;
let layoutBtn: HTMLElement;
Expand Down

0 comments on commit b90b1a5

Please sign in to comment.