Parse .//a//b/-prefixed paths more leniently in the file finder (#31459)

Closes https://github.com/zed-industries/zed/issues/15081
Closes https://github.com/zed-industries/zed/issues/31064

Release Notes:

- Parse `./`/`a/`/`b/`-prefixed paths more leniently in the file finder
This commit is contained in:
Kirill Bulatov 2025-05-26 23:38:12 +03:00 committed by GitHub
parent 5b320d6714
commit 6840a4e5bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 1 deletions

View file

@ -206,6 +206,11 @@ async fn test_matching_paths(cx: &mut TestAppContext) {
for bandana_query in [
"bandana",
"./bandana",
".\\bandana",
util::separator!("a/bandana"),
"b/bandana",
"b\\bandana",
" bandana",
"bandana ",
" bandana ",
@ -224,7 +229,8 @@ async fn test_matching_paths(cx: &mut TestAppContext) {
assert_eq!(
picker.delegate.matches.len(),
1,
"Wrong number of matches for bandana query '{bandana_query}'"
"Wrong number of matches for bandana query '{bandana_query}'. Matches: {:?}",
picker.delegate.matches
);
});
cx.dispatch_action(SelectNext);