mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
check if no rendered actions
This commit is contained in:
parent
b114662b7a
commit
a51e7b07c6
|
@ -645,15 +645,17 @@ function actionOverflowHelper(initialPrimaryActions: IActionModel[], initialSeco
|
|||
}
|
||||
}
|
||||
|
||||
for (let i = (renderActions.length - 1); i !== 0; i--) {
|
||||
const temp = renderActions[i];
|
||||
if (temp.size === 0) {
|
||||
continue;
|
||||
if (renderActions.length) {
|
||||
for (let i = (renderActions.length - 1); i !== 0; i--) {
|
||||
const temp = renderActions[i];
|
||||
if (temp.size === 0) {
|
||||
continue;
|
||||
}
|
||||
if (temp.action instanceof Separator) {
|
||||
renderActions.splice(i, 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (temp.action instanceof Separator) {
|
||||
renderActions.splice(i, 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue