Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Apr 24, 2020
1 parent 38b097a commit 6f4a9c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/search/common/searchModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ export class SearchModel extends Disposable {
this._resultQueue = [];

const options: IPatternInfo = objects.assign({}, this._searchQuery.contentPattern);
delete options.pattern;
delete (options as any).pattern;

const stats = completed && completed.stats as ITextSearchStats;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,8 @@ export function assertEqualQueries(actual: ITextQuery | IFileQuery, expected: IT
// Avoid comparing URI objects, not a good idea
if (expected.folderQueries) {
assert.deepEqual(actual.folderQueries.map(folderQueryToCompareObject), expected.folderQueries.map(folderQueryToCompareObject));
delete actual.folderQueries;
delete expected.folderQueries;
actual.folderQueries = [];
expected.folderQueries = [];
}

if (expected.extraFileResources) {
Expand Down

0 comments on commit 6f4a9c9

Please sign in to comment.