mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 09:35:37 -05:00
removed separator from context menu (#7059)
* removed separator from context menu * remove unused import
This commit is contained in:
committed by
Karl Burtram
parent
a57536be4b
commit
35b09542e2
@@ -26,7 +26,6 @@ import { IQueryManagementService } from 'sql/platform/query/common/queryManageme
|
||||
import { ServerInfoContextKey } from 'sql/workbench/parts/connection/common/serverInfoContextKey';
|
||||
import { fillInActions } from 'vs/platform/actions/browser/menuEntryActionViewItem';
|
||||
import { Separator } from 'vs/base/browser/ui/actionbar/actionbar';
|
||||
import { ITextResourcePropertiesService } from 'vs/editor/common/services/resourceConfiguration';
|
||||
|
||||
/**
|
||||
* Provides actions for the server tree elements
|
||||
@@ -107,7 +106,9 @@ export class ServerTreeActionProvider extends ContributableActionProvider {
|
||||
fillInActions(groups, actions, false);
|
||||
|
||||
if (insertIndex) {
|
||||
builtIn.unshift(new Separator());
|
||||
if (!(actions[insertIndex] instanceof Separator)) {
|
||||
builtIn.unshift(new Separator());
|
||||
}
|
||||
actions.splice(insertIndex, 0, ...builtIn);
|
||||
} else {
|
||||
if (actions.length > 0) {
|
||||
|
||||
@@ -83,7 +83,7 @@ MenuRegistry.appendMenuItem(MenuId.DataExplorerContext, {
|
||||
//#region -- Object Explorer
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
group: 'scripting',
|
||||
group: '0_query',
|
||||
order: 1,
|
||||
command: {
|
||||
id: commands.OE_SCRIPT_AS_SELECT_COMMAND_ID,
|
||||
@@ -93,7 +93,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
group: 'scripting',
|
||||
group: '0_query',
|
||||
order: 2,
|
||||
command: {
|
||||
id: commands.OE_EDIT_DATA_COMMAND_ID,
|
||||
@@ -103,7 +103,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
group: 'scripting',
|
||||
group: '0_query',
|
||||
order: 3,
|
||||
command: {
|
||||
id: commands.OE_SCRIPT_AS_CREATE_COMMAND_ID,
|
||||
@@ -123,7 +123,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
group: 'scripting',
|
||||
group: '0_query',
|
||||
order: 6,
|
||||
command: {
|
||||
id: commands.OE_SCRIPT_AS_EXECUTE_COMMAND_ID,
|
||||
@@ -133,7 +133,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
group: 'scripting',
|
||||
group: '0_query',
|
||||
order: 5,
|
||||
command: {
|
||||
id: commands.OE_SCRIPT_AS_ALTER_COMMAND_ID,
|
||||
@@ -163,7 +163,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
group: 'scripting',
|
||||
group: '0_query',
|
||||
order: 4,
|
||||
command: {
|
||||
id: commands.OE_SCRIPT_AS_DELETE_COMMAND_ID,
|
||||
@@ -183,7 +183,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
group: 'scripting',
|
||||
group: '0_query',
|
||||
order: 7,
|
||||
command: {
|
||||
id: commands.OE_REFRESH_COMMAND_ID,
|
||||
|
||||
Reference in New Issue
Block a user