Skip to content

Commit

Permalink
fix: maxResults config value is now applied to searchEditor (microsof…
Browse files Browse the repository at this point in the history
  • Loading branch information
vlwkaos authored and AiverReaver committed Aug 19, 2021
1 parent f079af3 commit b4422b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/searchEditor/browser/searchEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Delayer } from 'vs/base/common/async';
import { CancellationToken } from 'vs/base/common/cancellation';
import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import { DisposableStore } from 'vs/base/common/lifecycle';
import { assertIsDefined } from 'vs/base/common/types';
import { assertIsDefined, withNullAsUndefined } from 'vs/base/common/types';
import { URI } from 'vs/base/common/uri';
import 'vs/css!./media/searchEditor';
import { CodeEditorWidget } from 'vs/editor/browser/widget/codeEditorWidget';
Expand Down Expand Up @@ -499,7 +499,7 @@ export class SearchEditor extends BaseTextEditor {
const options: ITextQueryBuilderOptions = {
_reason: 'searchEditor',
extraFileResources: this.instantiationService.invokeFunction(getOutOfWorkspaceEditorResources),
maxResults: 10000,
maxResults: withNullAsUndefined(this.searchConfig.maxResults),
disregardIgnoreFiles: !config.useExcludeSettingsAndIgnoreFiles || undefined,
disregardExcludeSettings: !config.useExcludeSettingsAndIgnoreFiles || undefined,
excludePattern: config.filesToExclude,
Expand Down

0 comments on commit b4422b0

Please sign in to comment.