mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -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) {
|
||||
|
||||
Reference in New Issue
Block a user