提交 ede8a0f3 编写于 作者: C Christof Marti

Copy extension-provided arrays (#49340)

上级 ed788cfc
......@@ -325,7 +325,7 @@ class ExtHostQuickInput implements QuickInput {
}
set buttons(buttons: QuickInputButton[]) {
this._buttons = buttons;
this._buttons = buttons.slice();
this._handlesToButtons.clear();
buttons.forEach((button, i) => {
const handle = button === backButton ? -1 : i;
......@@ -478,7 +478,7 @@ class ExtHostQuickPick extends ExtHostQuickInput implements QuickPick {
}
set items(items: QuickPickItem[]) {
this._items = items;
this._items = items.slice();
this._handlesToItems.clear();
this._itemsToHandles.clear();
items.forEach((item, i) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册