Skip to content

Commit 2ba72b5

Browse files
committed
Make fuzzy toggle handler more concise
1 parent 653a834 commit 2ba72b5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,13 +1020,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
10201020
inputActiveOptionBackground: this._themeService.getColorTheme().getColor(inputActiveOptionBackground)
10211021
});
10221022
fuzzySearchToggle.onChange(() => {
1023-
if (fuzzySearchToggle.checked) {
1024-
quickPick.hide();
1025-
this.runRecent(type, 'fuzzy', quickPick.value);
1026-
} else {
1027-
quickPick.hide();
1028-
this.runRecent(type, 'contiguous', quickPick.value);
1029-
}
1023+
this.runRecent(type, fuzzySearchToggle.checked ? 'fuzzy' : 'contiguous', quickPick.value);
10301024
});
10311025
const outputProvider = this._instantiationService.createInstance(TerminalOutputProvider);
10321026
const quickPick = this._quickInputService.createQuickPick<IQuickPickItem & { rawLabel: string }>();

0 commit comments

Comments
 (0)