diff --git a/extensions/resource-deployment/DEVELOPER_GUIDE.md b/extensions/resource-deployment/DEVELOPER_GUIDE.md index 9ad8d34e1f..d28d13971f 100644 --- a/extensions/resource-deployment/DEVELOPER_GUIDE.md +++ b/extensions/resource-deployment/DEVELOPER_GUIDE.md @@ -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 diff --git a/src/sql/base/common/locConstants.ts b/src/sql/base/common/locConstants.ts index 288f9d7d80..96f8047bd5 100644 --- a/src/sql/base/common/locConstants.ts +++ b/src/sql/base/common/locConstants.ts @@ -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); } diff --git a/src/vs/workbench/contrib/files/browser/fileActions.contribution.ts b/src/vs/workbench/contrib/files/browser/fileActions.contribution.ts index 6126846873..251917036a 100644 --- a/src/vs/workbench/contrib/files/browser/fileActions.contribution.ts +++ b/src/vs/workbench/contrib/files/browser/fileActions.contribution.ts @@ -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: {