Autocomplete allow searchs with /'s like: folder1/folder2 (#882)

* Extend fd autocomplete tests

* Renamed fixture type in autocomplete test
This commit is contained in:
Richard Gill 2026-01-21 22:23:51 +00:00 committed by GitHub
parent 69d02b8a5f
commit 7dc652f304
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 182 additions and 2 deletions

View file

@ -11,7 +11,17 @@ function walkDirectoryWithFd(
query: string,
maxResults: number,
): Array<{ path: string; isDirectory: boolean }> {
const args = ["--base-directory", baseDir, "--max-results", String(maxResults), "--type", "f", "--type", "d"];
const args = [
"--base-directory",
baseDir,
"--max-results",
String(maxResults),
"--type",
"f",
"--type",
"d",
"--full-path",
];
// Add query as pattern if provided
if (query) {