mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 17:23:25 -05:00
Secondary actions (#16122)
* data menu shows up * clean up code * remove dead code * string literal * add menu item instead * remove unused code
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { VIEWLET_ID } from 'sql/workbench/contrib/dataExplorer/browser/dataExplorerViewlet';
|
||||
import { localize } from 'vs/nls';
|
||||
import { MenuId, MenuRegistry } from 'vs/platform/actions/common/actions';
|
||||
import { CommandsRegistry, ICommandService } from 'vs/platform/commands/common/commands';
|
||||
import { ContextKeyEqualsExpr } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
|
||||
|
||||
// New Resource Deployment
|
||||
@@ -15,3 +19,13 @@ CommandsRegistry.registerCommand({
|
||||
return commandService.executeCommand('azdata.resource.deploy');
|
||||
}
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
||||
group: 'deployment',
|
||||
order: 4,
|
||||
command: {
|
||||
id: 'azdata.resource.deploy',
|
||||
title: localize('deployment.title', "New Deployment...")
|
||||
},
|
||||
when: ContextKeyEqualsExpr.create('viewContainer', VIEWLET_ID)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user