Select first match when expanding collapsed path
MODIFY
lib/project/results-view.js
lib/project/results-view.js
@@ -334,8 +334,9 @@ class ResultsView {
}
expandResult() {
- if (this.selectedResultIndex !== -1) {
+ if (this.selectedResultIndex !== -1 && this.selectedMatchIndex == -1) {
this.collapsedResultIndices[this.selectedResultIndex] = false;
+ this.selectedMatchIndex = 0;
this.renderResults();
}
}

Select first match when expanding collapsed path