File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
workbench/contrib/terminal/browser Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -741,12 +741,12 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
741
741
this . update ( ) ;
742
742
}
743
743
744
- set additionalToggles ( toggles : IQuickInputToggle [ ] | undefined ) {
744
+ set toggles ( toggles : IQuickInputToggle [ ] | undefined ) {
745
745
// HACK: Filter out toggles here that are not concrete Toggle objects. This is to workaround
746
746
// a layering issue as quick input's interface is in common but Toggle is in browser and
747
747
// it requires a HTMLElement on its interface
748
748
const concreteToggles = toggles ?. filter ( opts => opts instanceof Toggle ) as Toggle [ ] ;
749
- this . ui . inputBox . additionalToggles = concreteToggles ;
749
+ this . ui . inputBox . toggles = concreteToggles ;
750
750
}
751
751
752
752
onDidChangeSelection = this . onDidChangeSelectionEmitter . event ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export class QuickInputBox extends Disposable {
92
92
this . findInput . setEnabled ( enabled ) ;
93
93
}
94
94
95
- set additionalToggles ( toggles : Toggle [ ] | undefined ) {
95
+ set toggles ( toggles : Toggle [ ] | undefined ) {
96
96
this . findInput . setAdditionalToggles ( toggles ) ;
97
97
}
98
98
Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ export interface IQuickPick<T extends IQuickPickItem> extends IQuickInput {
344
344
/**
345
345
* A set of `Toggle` objects to add to the input box.
346
346
*/
347
- additionalToggles : IQuickInputToggle [ ] | undefined ;
347
+ toggles : IQuickInputToggle [ ] | undefined ;
348
348
}
349
349
350
350
export interface IQuickInputToggle {
Original file line number Diff line number Diff line change @@ -1035,7 +1035,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
1035
1035
quickPick . sortByLabel = false ;
1036
1036
quickPick . placeholder = placeholder ;
1037
1037
quickPick . matchOnLabelMode = filterMode || 'contiguous' ;
1038
- quickPick . additionalToggles = [ fuzzySearchToggle ] ;
1038
+ quickPick . toggles = [ fuzzySearchToggle ] ;
1039
1039
quickPick . onDidTriggerItemButton ( async e => {
1040
1040
if ( e . button === removeFromCommandHistoryButton ) {
1041
1041
if ( type === 'command' ) {
You can’t perform that action at this time.
0 commit comments