mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Removing inline actions from context menu in OE (#23281)
This commit is contained in:
@@ -146,7 +146,7 @@ export class ServerTreeActionProvider {
|
|||||||
insertIndex = queryIndex > -1 ? insertIndex + groups[queryIndex][1].length : undefined;
|
insertIndex = queryIndex > -1 ? insertIndex + groups[queryIndex][1].length : undefined;
|
||||||
|
|
||||||
if (inlineOnly) {
|
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);
|
fillInActions(groups, actions, false);
|
||||||
actions.unshift(...builtIn);
|
actions.unshift(...builtIn);
|
||||||
// Moving refresh action to the end of the list
|
// Moving refresh action to the end of the list
|
||||||
@@ -157,6 +157,7 @@ export class ServerTreeActionProvider {
|
|||||||
actions.push(actions.splice(refreshIndex, 1)[0]);
|
actions.push(actions.splice(refreshIndex, 1)[0]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
groups = groups.filter(g => !g[0].includes('inline')); // Removing inline actions
|
||||||
fillInActions(groups, actions, false);
|
fillInActions(groups, actions, false);
|
||||||
if (insertIndex) {
|
if (insertIndex) {
|
||||||
if (!(actions[insertIndex] instanceof Separator) && builtIn.length > 0 && !inlineOnly) {
|
if (!(actions[insertIndex] instanceof Separator) && builtIn.length > 0 && !inlineOnly) {
|
||||||
|
|||||||
Reference in New Issue
Block a user