提交 65f571bf 编写于 作者: A Alex Ross

Don't show remote picker when only one option

上级 82105aad
......@@ -77,11 +77,13 @@ export class SwitchRemoteViewItem extends SelectActionViewItem {
}
render(container: HTMLElement) {
super.render(container);
dom.addClass(container, 'switch-remote');
this._register(attachStylerCallback(this.themeService, { selectBorder }, colors => {
container.style.border = colors.selectBorder ? `1px solid ${colors.selectBorder}` : '';
}));
if (this.optionsItems.length > 1) {
super.render(container);
dom.addClass(container, 'switch-remote');
this._register(attachStylerCallback(this.themeService, { selectBorder }, colors => {
container.style.border = colors.selectBorder ? `1px solid ${colors.selectBorder}` : '';
}));
}
}
protected getActionContext(_: string, index: number): any {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册