Skip to content

Commit 653a834

Browse files
committed
additionalToggles -> toggles
1 parent dc3f1e7 commit 653a834

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/vs/base/parts/quickinput/browser/quickInput.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,12 +741,12 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
741741
this.update();
742742
}
743743

744-
set additionalToggles(toggles: IQuickInputToggle[] | undefined) {
744+
set toggles(toggles: IQuickInputToggle[] | undefined) {
745745
// HACK: Filter out toggles here that are not concrete Toggle objects. This is to workaround
746746
// a layering issue as quick input's interface is in common but Toggle is in browser and
747747
// it requires a HTMLElement on its interface
748748
const concreteToggles = toggles?.filter(opts => opts instanceof Toggle) as Toggle[];
749-
this.ui.inputBox.additionalToggles = concreteToggles;
749+
this.ui.inputBox.toggles = concreteToggles;
750750
}
751751

752752
onDidChangeSelection = this.onDidChangeSelectionEmitter.event;

src/vs/base/parts/quickinput/browser/quickInputBox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class QuickInputBox extends Disposable {
9292
this.findInput.setEnabled(enabled);
9393
}
9494

95-
set additionalToggles(toggles: Toggle[] | undefined) {
95+
set toggles(toggles: Toggle[] | undefined) {
9696
this.findInput.setAdditionalToggles(toggles);
9797
}
9898

src/vs/base/parts/quickinput/common/quickInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export interface IQuickPick<T extends IQuickPickItem> extends IQuickInput {
344344
/**
345345
* A set of `Toggle` objects to add to the input box.
346346
*/
347-
additionalToggles: IQuickInputToggle[] | undefined;
347+
toggles: IQuickInputToggle[] | undefined;
348348
}
349349

350350
export interface IQuickInputToggle {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
10351035
quickPick.sortByLabel = false;
10361036
quickPick.placeholder = placeholder;
10371037
quickPick.matchOnLabelMode = filterMode || 'contiguous';
1038-
quickPick.additionalToggles = [fuzzySearchToggle];
1038+
quickPick.toggles = [fuzzySearchToggle];
10391039
quickPick.onDidTriggerItemButton(async e => {
10401040
if (e.button === removeFromCommandHistoryButton) {
10411041
if (type === 'command') {

0 commit comments

Comments
 (0)