Scroll to selected item after expanding or collapsing files
MODIFY
lib/project/results-view.js
lib/project/results-view.js
@@ -345,6 +345,7 @@ class ResultsView {
if (this.selectedResultIndex !== -1) {
this.collapsedResultIndices[this.selectedResultIndex] = false;
if (this.selectedMatchIndex === -1) this.selectedMatchIndex = 0;
+ this.scrollToSelectedMatch();
etch.update(this);
}
}
@@ -352,6 +353,7 @@ class ResultsView {
collapseResult() {
if (this.selectedResultIndex !== -1) {
this.collapsedResultIndices[this.selectedResultIndex] = true;
+ this.scrollToSelectedMatch();
etch.update(this);
}
}

Scroll to selected item after expanding or collapsing files