diff --git a/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts b/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts index b8d206ce07..1a264a35d1 100644 --- a/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts +++ b/src/vs/base/browser/ui/selectBox/selectBoxCustom.ts @@ -397,8 +397,16 @@ export class SelectBoxList implements ISelectBoxDelegate, IDelegate container.removeChild(this.selectDropDownContainer) // remove to take out the CSS rules we add + dispose: () => { + try { + container.removeChild(this.selectDropDownContainer); // remove to take out the CSS rules we add + } catch(e) { + // if this fails it means it is already removed + } + } }; }