From a82ae7980eb4860c65ea6e363f2368091baa6d95 Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Wed, 21 Mar 2018 11:03:45 +0100 Subject: [PATCH] Fix selection behavior (#45589) --- .../browser/parts/quickinput/quickInputCheckboxList.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/browser/parts/quickinput/quickInputCheckboxList.ts b/src/vs/workbench/browser/parts/quickinput/quickInputCheckboxList.ts index 06b3f268b78b5..6d79389d10e6c 100644 --- a/src/vs/workbench/browser/parts/quickinput/quickInputCheckboxList.ts +++ b/src/vs/workbench/browser/parts/quickinput/quickInputCheckboxList.ts @@ -170,6 +170,7 @@ export class QuickInputCheckboxList { selected: !!item.selected })); this.list.splice(0, this.list.length, this.elements); + this.list.setSelection([]); this.list.focusFirst(); } @@ -230,8 +231,9 @@ export class QuickInputCheckboxList { }); this.list.splice(0, this.list.length, this.elements.filter(element => !element.hidden)); - this.list.layout(); + this.list.setSelection([]); this.list.focusFirst(); + this.list.layout(); } toggleCheckbox() {