Add arc deployment contributions to arc extension (#11032)

* Add arc deployment contributions to arc extension

* Add logo image

* update images

* Update strings
This commit is contained in:
Charles Gagnon
2020-06-22 12:54:56 -07:00
committed by GitHub
parent 637bc8d5ba
commit 681e5f5077
14 changed files with 1607 additions and 4 deletions

View File

@@ -41,7 +41,20 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
vscode.commands.registerCommand('arc.openDashboard', async (treeNode: TreeNode) => {
await treeNode.openDashboard().catch(err => vscode.window.showErrorMessage(loc.openDashboardFailed(err)));
});
await checkArcDeploymentExtension();
}
export function deactivate(): void {
}
async function checkArcDeploymentExtension(): Promise<void> {
const version = vscode.extensions.getExtension('Microsoft.arcdeployment')?.packageJSON.version;
if (version && version !== '0.3.2') {
// If we have an older verison of the deployment extension installed then uninstall it now since it's replaced
// by this extension. (the latest version of the Arc Deployment extension will uninstall itself so don't do
// anything here if that's already updated)
await vscode.commands.executeCommand('workbench.extensions.uninstallExtension', 'Microsoft.arcdeployment');
vscode.window.showInformationMessage(loc.arcDeploymentDeprecation);
}
}