diff --git a/src/sql/workbench/services/objectExplorer/browser/serverTreeActionProvider.ts b/src/sql/workbench/services/objectExplorer/browser/serverTreeActionProvider.ts index 6ea0ef5eef..5c93d723a7 100644 --- a/src/sql/workbench/services/objectExplorer/browser/serverTreeActionProvider.ts +++ b/src/sql/workbench/services/objectExplorer/browser/serverTreeActionProvider.ts @@ -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) {