Moves New Deployment from connections pane to file menu bar. (#22090)

* Moves New Deployment to file menu bar.

* Add deployment back to breadcrumb menu

* Update extensions/resource-deployment/DEVELOPER_GUIDE.md

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* Adjust new deployment mnemonic

* Remove unused localized string

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
Lewis Sanchez
2023-03-02 16:26:38 -08:00
committed by GitHub
parent 20c290aa91
commit eb3c5f1f47
3 changed files with 14 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ This guide is meant to provide details on what this extension does and how other
This extension provides a way for other extension authors to contribute types to the Resource Deployment Wizard which allows users to create and deploy resources such as servers.
This wizard is launched by either running the `Deployment: New Deployment...` command from the command palette or by clicking the `...` on the `Connections` pane and selecting `New Deployment...`
This wizard is launched by either running the `Deployment: New Deployment...` command from the command palette or by clicking `File` on the menu bar and selecting `New Deployment...`
## How to Contribute a new Type

View File

@@ -38,6 +38,7 @@ export function extensionsWorkbenchServiceIncompatible(extension: string, extens
export const fileActionsContributionNewQuery = localize('newQuery', "New Query");
export const fileActionsContributionMiNewQuery = localize({ key: 'miNewQuery', comment: ['&& denotes a mnemonic'] }, "New &&Query");
export const fileActionsContributionMiNewNotebook = localize({ key: 'miNewNotebook', comment: ['&& denotes a mnemonic'] }, "&&New Notebook");
export const fileActionsContributionMiNewDeployment = localize({ key: 'miNewDeployment', comment: ['&& denotes a mnemonic'] }, "New &&Deployment...");
export const filesContributionMaxMemoryForLargeFilesMB = localize('maxMemoryForLargeFilesMB', "Controls the memory available to Azure Data Studio after restart when trying to open large files. Same effect as specifying `--max-memory=NEWSIZE` on the command line.");
export const watcherExclude = localize('sql.watcherExclude', "Configure glob patterns of file paths to exclude from file watching. Patterns must match on absolute paths, i.e. prefix with `**/` or the full path to match properly and suffix with `/**` to match files within a path (for example `**/build/output/**` or `/Users/name/workspaces/project/build/output/**`). Changing this setting requires a restart. When you experience Azure Data Studio consuming lots of CPU time on startup, you can exclude large folders to reduce the initial load.");
export function localizationsContributionUpdateLocale(locale: string): string { return localize('updateLocale', "Would you like to change Azure Data Studio's UI language to {0} and restart?", locale); }

View File

@@ -607,7 +607,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
order: 1.1
});
// {{SQL CARBON EDIT}} - Add "New Notebook" item
// {{SQL CARBON EDIT}} - BEGIN - Add "New Notebook" item
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
group: '1_new',
command: {
@@ -618,6 +618,17 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
});
// {{SQL CARBON EDIT}} - End
// {{SQL CARBON EDIT}} - BEGIN - Add "New Deployment..." option
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
group: '1_new',
command: {
id: 'azdata.resource.deploy',
title: locConstants.fileActionsContributionMiNewDeployment
},
order: 4
});
// {{SQL CARBON EDIT}} - END
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
group: '4_save',
command: {