Skip to content

Commit

Permalink
issue 201138 regressed again -- web vscode can't search across files
Browse files Browse the repository at this point in the history
Fixes #227742
  • Loading branch information
andreamah committed Sep 13, 2024
1 parent db2a1df commit f4a34d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vs/workbench/services/search/worker/localFileSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,12 @@ function createSearchRegExp(options: IPatternInfo): RegExp {
}

function reviveFolderQuery(folderQuery: IFolderQuery<UriComponents>): IFolderQuery<URI> {
return revive(folderQuery);
// @todo: andrea - try to see why we can't just call 'revive' here
return revive({
...revive(folderQuery),
excludePattern: folderQuery.excludePattern?.map(ep => ({ folder: URI.revive(ep.folder), pattern: ep.pattern })),
folder: URI.revive(folderQuery.folder),
});
}

function reviveQueryProps(queryProps: ICommonQueryProps<UriComponents>): ICommonQueryProps<URI> {
Expand Down

0 comments on commit f4a34d0

Please sign in to comment.