From cc4fd6ad10c0e36fdc8e037277f57e56736b161f Mon Sep 17 00:00:00 2001 From: Alexander Kozinko Date: Wed, 30 Jun 2021 14:01:10 +0300 Subject: [PATCH] Fix tree view selection Signed-off-by: Alexander Kozinko xcariba@gmail.com --- packages/plugin-ext/src/plugin/tree/tree-views.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-ext/src/plugin/tree/tree-views.ts b/packages/plugin-ext/src/plugin/tree/tree-views.ts index d0762476f779a..519cb7cfe6d21 100644 --- a/packages/plugin-ext/src/plugin/tree/tree-views.ts +++ b/packages/plugin-ext/src/plugin/tree/tree-views.ts @@ -450,7 +450,7 @@ class TreeViewExtImpl implements Disposable { setSelection(selectedItemIds: string[]): void { const toDelete = new Set(this.selectedItemIds); - for (const id of this.selectedItemIds) { + for (const id of selectedItemIds) { toDelete.delete(id); if (!this.selectedItemIds.has(id)) { this.doSetSelection(selectedItemIds);