Skip to content

Commit 8f82e8c

Browse files
committed
Syncs search query filter with search mode changes
- Keeps the active search query's filter property in sync with the selected search mode
1 parent 9888b38 commit 8f82e8c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/webviews/plus/graph/graphWebview.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,14 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
931931
private updateGraphSearchMode(params: UpdateGraphSearchModeParams) {
932932
void this.container.storage.store('graph:searchMode', params.searchMode).catch();
933933
void this.container.storage.store('graph:useNaturalLanguageSearch', params.useNaturalLanguage).catch();
934+
935+
// Update the active search query's filter property to match the new mode
936+
if (this._search?.query != null) {
937+
this._search = {
938+
...this._search,
939+
query: { ...this._search.query, filter: params.searchMode === 'filter' },
940+
};
941+
}
934942
}
935943

936944
private _showActiveSelectionDetailsDebounced:

0 commit comments

Comments
 (0)