Skip to content

Commit

Permalink
immediately search after enter pressed in files to include/exclude te… (
Browse files Browse the repository at this point in the history
#190473)

immediately search after enter pressed in files to include/exclude text fields.
  • Loading branch information
weartist authored Aug 23, 2023
1 parent 1deb04b commit 2d3235f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/workbench/contrib/search/browser/searchView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1454,9 +1454,11 @@ export class SearchView extends ViewPane {
if (options.triggeredOnType && !this.searchConfig.searchOnType) { return; }

if (!this.pauseSearching) {

const delay = options.triggeredOnType ? options.delay : 0;
this.triggerQueryDelayer.trigger(() => {
this._onQueryChanged(options.preserveFocus, options.triggeredOnType);
}, options.delay);
}, delay);
}
}

Expand Down

0 comments on commit 2d3235f

Please sign in to comment.