mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
Fix #117251
This commit is contained in:
parent
fe79bb261f
commit
74014e7fc6
@ -319,7 +319,6 @@ export class SearchView extends ViewPane {
|
||||
this.inputPatternIncludes.setValue(patternIncludes);
|
||||
this.inputPatternIncludes.setOnlySearchInOpenEditors(onlyOpenEditors);
|
||||
|
||||
this._register(this.inputPatternIncludes.onSubmit(triggeredOnType => this.triggerQueryChange({ triggeredOnType, delay: this.searchConfig.searchOnTypeDebouncePeriod })));
|
||||
this._register(this.inputPatternIncludes.onCancel(() => this.cancelSearch(false)));
|
||||
this._register(this.inputPatternIncludes.onChangeSearchInEditorsBox(() => this.triggerQueryChange()));
|
||||
|
||||
@ -1277,6 +1276,8 @@ export class SearchView extends ViewPane {
|
||||
triggerQueryChange(_options?: { preserveFocus?: boolean, triggeredOnType?: boolean, delay?: number }) {
|
||||
const options = { preserveFocus: true, triggeredOnType: false, delay: 0, ..._options };
|
||||
|
||||
if (options.triggeredOnType && !this.searchConfig.searchOnType) { return; }
|
||||
|
||||
if (!this.pauseSearching) {
|
||||
this.triggerQueryDelayer.trigger(() => {
|
||||
this._onQueryChanged(options.preserveFocus, options.triggeredOnType);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user