We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed788cf commit ede8a0fCopy full SHA for ede8a0f
src/vs/workbench/api/node/extHostQuickOpen.ts
@@ -325,7 +325,7 @@ class ExtHostQuickInput implements QuickInput {
325
}
326
327
set buttons(buttons: QuickInputButton[]) {
328
- this._buttons = buttons;
+ this._buttons = buttons.slice();
329
this._handlesToButtons.clear();
330
buttons.forEach((button, i) => {
331
const handle = button === backButton ? -1 : i;
@@ -478,7 +478,7 @@ class ExtHostQuickPick extends ExtHostQuickInput implements QuickPick {
478
479
480
set items(items: QuickPickItem[]) {
481
- this._items = items;
+ this._items = items.slice();
482
this._handlesToItems.clear();
483
this._itemsToHandles.clear();
484
items.forEach((item, i) => {
0 commit comments