@microsoft/vscode-azext-azureutils
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -24,6 +24,8 @@ "use strict"; | ||
const signInLabel = (0, localize_1.localize)('signInLabel', 'Sign in to Azure...'); | ||
const createAccountLabel = (0, localize_1.localize)('createAccountLabel', 'Create a Free Azure Account...'); | ||
const createAccountLabel = (0, localize_1.localize)('createAccountLabel', 'Create an Azure Account...'); | ||
const createStudentAccountLabel = (0, localize_1.localize)('createStudentAccount', 'Create an Azure for Students Account...'); | ||
const selectSubscriptionsLabel = (0, localize_1.localize)('noSubscriptions', 'Select Subscriptions...'); | ||
const signInCommandId = 'azure-account.login'; | ||
const createAccountCommandId = 'azure-account.createAccount'; | ||
const createStudentAccountCommandId = 'azure-account.createStudentAccount'; | ||
const selectSubscriptionsCommandId = 'azure-account.selectSubscriptions'; | ||
@@ -87,5 +89,15 @@ const azureAccountExtensionId = 'ms-vscode.azure-account'; | ||
else if (azureAccount.status === 'LoggedOut') { | ||
const studentAccountTreeItem = new vscode_azext_utils_1.GenericTreeItem(this, { | ||
label: createStudentAccountLabel, | ||
commandId: 'azureResourceGroups.openUrl', | ||
contextValue, | ||
id: createStudentAccountCommandId, | ||
iconPath: new vscode_1.ThemeIcon('mortar-board'), | ||
includeInTreeItemPicker: true | ||
}); | ||
studentAccountTreeItem.commandArgs = ['https://aka.ms/student-account']; | ||
return [ | ||
new vscode_azext_utils_1.GenericTreeItem(this, { label: signInLabel, commandId: signInCommandId, contextValue, id: signInCommandId, iconPath: new vscode_1.ThemeIcon('sign-in'), includeInTreeItemPicker: true }), | ||
new vscode_azext_utils_1.GenericTreeItem(this, { label: createAccountLabel, commandId: createAccountCommandId, contextValue, id: createAccountCommandId, iconPath: new vscode_1.ThemeIcon('add'), includeInTreeItemPicker: true }) | ||
new vscode_azext_utils_1.GenericTreeItem(this, { label: createAccountLabel, commandId: createAccountCommandId, contextValue, id: createAccountCommandId, iconPath: new vscode_1.ThemeIcon('add'), includeInTreeItemPicker: true }), | ||
studentAccountTreeItem | ||
]; | ||
@@ -92,0 +104,0 @@ } |
{ | ||
"name": "@microsoft/vscode-azext-azureutils", | ||
"author": "Microsoft Corporation", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Common Azure utils for developing Azure extensions for VS Code", | ||
@@ -6,0 +6,0 @@ "tags": [ |
125376
2002