Automatically enable project search filters when using Search Inside (#2889)

Now that the filters are hidden behind a toggle-able setting, running
the `Search Inside` action from the project panel feels a bit weird,
since the filter being used is hidden. This PR automatically opens that
filter section after running a `Search Inside` action.

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2023-08-25 02:39:44 -04:00 committed by GitHub
commit f1586c9923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -893,6 +893,7 @@ impl ProjectSearchView {
search
.included_files_editor
.update(cx, |editor, cx| editor.set_text(filter_str, cx));
search.filters_enabled = true;
search.focus_query_editor(cx)
});
}