Skip to content

Commit 2e740fb

Browse files
committed
Avoids unwanted selection if active search request
1 parent 42a1ff7 commit 2e740fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/webviews/plus/graph/graphWebview.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,10 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
27102710
let selectedId = this._selectedId;
27112711
let selectionChanged = false;
27122712

2713+
// Skip default row selection if we have a pending search request
2714+
// to avoid jumping to WIP/HEAD before the search is applied
27132715
if (
2716+
searchRequest == null &&
27142717
selectedId !== uncommitted &&
27152718
hasWorkingChanges &&
27162719
configuration.get('graph.initialRowSelection') === 'wip'

0 commit comments

Comments
 (0)