Removing inline actions from context menu in OE (#23281)

This commit is contained in:
Aasim Khan
2023-05-31 21:33:02 -07:00
committed by GitHub
parent d9f723a75b
commit c16fce3ab9

View File

@@ -146,7 +146,7 @@ export class ServerTreeActionProvider {
insertIndex = queryIndex > -1 ? insertIndex + groups[queryIndex][1].length : undefined;
if (inlineOnly) {
groups = groups.filter(g => g[0].includes('inline'));
groups = groups.filter(g => g[0].includes('inline')); // Keeping only inline actions
fillInActions(groups, actions, false);
actions.unshift(...builtIn);
// Moving refresh action to the end of the list
@@ -157,6 +157,7 @@ export class ServerTreeActionProvider {
actions.push(actions.splice(refreshIndex, 1)[0]);
}
} else {
groups = groups.filter(g => !g[0].includes('inline')); // Removing inline actions
fillInActions(groups, actions, false);
if (insertIndex) {
if (!(actions[insertIndex] instanceof Separator) && builtIn.length > 0 && !inlineOnly) {