mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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 { ServerInfoContextKey } from 'sql/workbench/parts/connection/common/serverInfoContextKey';
|
||||||
import { fillInActions } from 'vs/platform/actions/browser/menuEntryActionViewItem';
|
import { fillInActions } from 'vs/platform/actions/browser/menuEntryActionViewItem';
|
||||||
import { Separator } from 'vs/base/browser/ui/actionbar/actionbar';
|
import { Separator } from 'vs/base/browser/ui/actionbar/actionbar';
|
||||||
import { ITextResourcePropertiesService } from 'vs/editor/common/services/resourceConfiguration';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides actions for the server tree elements
|
* Provides actions for the server tree elements
|
||||||
@@ -107,7 +106,9 @@ export class ServerTreeActionProvider extends ContributableActionProvider {
|
|||||||
fillInActions(groups, actions, false);
|
fillInActions(groups, actions, false);
|
||||||
|
|
||||||
if (insertIndex) {
|
if (insertIndex) {
|
||||||
builtIn.unshift(new Separator());
|
if (!(actions[insertIndex] instanceof Separator)) {
|
||||||
|
builtIn.unshift(new Separator());
|
||||||
|
}
|
||||||
actions.splice(insertIndex, 0, ...builtIn);
|
actions.splice(insertIndex, 0, ...builtIn);
|
||||||
} else {
|
} else {
|
||||||
if (actions.length > 0) {
|
if (actions.length > 0) {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ MenuRegistry.appendMenuItem(MenuId.DataExplorerContext, {
|
|||||||
//#region -- Object Explorer
|
//#region -- Object Explorer
|
||||||
|
|
||||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||||
group: 'scripting',
|
group: '0_query',
|
||||||
order: 1,
|
order: 1,
|
||||||
command: {
|
command: {
|
||||||
id: commands.OE_SCRIPT_AS_SELECT_COMMAND_ID,
|
id: commands.OE_SCRIPT_AS_SELECT_COMMAND_ID,
|
||||||
@@ -93,7 +93,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||||
group: 'scripting',
|
group: '0_query',
|
||||||
order: 2,
|
order: 2,
|
||||||
command: {
|
command: {
|
||||||
id: commands.OE_EDIT_DATA_COMMAND_ID,
|
id: commands.OE_EDIT_DATA_COMMAND_ID,
|
||||||
@@ -103,7 +103,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||||
group: 'scripting',
|
group: '0_query',
|
||||||
order: 3,
|
order: 3,
|
||||||
command: {
|
command: {
|
||||||
id: commands.OE_SCRIPT_AS_CREATE_COMMAND_ID,
|
id: commands.OE_SCRIPT_AS_CREATE_COMMAND_ID,
|
||||||
@@ -123,7 +123,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||||
group: 'scripting',
|
group: '0_query',
|
||||||
order: 6,
|
order: 6,
|
||||||
command: {
|
command: {
|
||||||
id: commands.OE_SCRIPT_AS_EXECUTE_COMMAND_ID,
|
id: commands.OE_SCRIPT_AS_EXECUTE_COMMAND_ID,
|
||||||
@@ -133,7 +133,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||||
group: 'scripting',
|
group: '0_query',
|
||||||
order: 5,
|
order: 5,
|
||||||
command: {
|
command: {
|
||||||
id: commands.OE_SCRIPT_AS_ALTER_COMMAND_ID,
|
id: commands.OE_SCRIPT_AS_ALTER_COMMAND_ID,
|
||||||
@@ -163,7 +163,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||||
group: 'scripting',
|
group: '0_query',
|
||||||
order: 4,
|
order: 4,
|
||||||
command: {
|
command: {
|
||||||
id: commands.OE_SCRIPT_AS_DELETE_COMMAND_ID,
|
id: commands.OE_SCRIPT_AS_DELETE_COMMAND_ID,
|
||||||
@@ -183,7 +183,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||||
group: 'scripting',
|
group: '0_query',
|
||||||
order: 7,
|
order: 7,
|
||||||
command: {
|
command: {
|
||||||
id: commands.OE_REFRESH_COMMAND_ID,
|
id: commands.OE_REFRESH_COMMAND_ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user