mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-27 15:20:30 -04:00
@@ -26,6 +26,12 @@ import { AzureAccount, Tenant } from '../account-provider/interfaces';
|
|||||||
export function registerAzureResourceCommands(appContext: AppContext, tree: AzureResourceTreeProvider): void {
|
export function registerAzureResourceCommands(appContext: AppContext, tree: AzureResourceTreeProvider): void {
|
||||||
appContext.apiWrapper.registerCommand('azure.resource.startterminal', async (node?: TreeNode) => {
|
appContext.apiWrapper.registerCommand('azure.resource.startterminal', async (node?: TreeNode) => {
|
||||||
try {
|
try {
|
||||||
|
const enablePreviewFeatures = appContext.apiWrapper.getConfiguration('workbench').get('enablePreviewFeatures');
|
||||||
|
if (!enablePreviewFeatures) {
|
||||||
|
const msg = localize('azure.cloudTerminalPreview', "You must enable preview features in order to use Azure Cloud Shell.");
|
||||||
|
appContext.apiWrapper.showInformationMessage(msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!node || !(node instanceof AzureResourceAccountTreeNode)) {
|
if (!node || !(node instanceof AzureResourceAccountTreeNode)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user