mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -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;
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user