rename the extension name and command id (#130)

* rename the extension name and command id

* update according to comments
This commit is contained in:
Sheng Chen 2018-03-02 14:21:06 +08:00 коммит произвёл GitHub
Родитель 5c2f80370e
Коммит caf642178e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 55 добавлений и 60 удалений

Просмотреть файл

@ -1,6 +1,6 @@
# Change Log
All notable changes to the "vscode-terraform-azure" extension will be documented in this file.
All notable changes to the "Azure Terraform" extension will be documented in this file.
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

Просмотреть файл

@ -1,6 +1,6 @@
# vscode-terraform-azure README
# Azure Terraform
The VSCode Terraform Azure extension is designed to increase developer productivity building Terraform modules for Azure. The extension provides, linting, terraform command support, resource graph visualization, testing and CloudShell integration inside of VSCode.
The VSCode Azure Terraform extension is designed to increase developer productivity building Terraform modules for Azure. The extension provides linting, terraform command support, resource graph visualization, testing and CloudShell integration inside VSCode.
![overview](images/overview.png)
@ -14,37 +14,37 @@ This extension supports the following features:
- Visualize the terraform module.
- Run linting and end to end tests.
### Terraform Azure: init
### Azure Terraform: init
Executes `terraform init` command against the current project workspace. If run with terminal set to CloudShell, will run `terraform init` in CloudShell.
### Terraform Azure: plan
### Azure Terraform: plan
Executes `terraform plan` command against the current project workspace. If run with terminal set to CloudShell, will run `terraform plan` in CloudShell.
### Terraform Azure: apply
### Azure Terraform: apply
Executes `terraform apply` command against the current project workspace. If run with terminal set to CloudShell, will run `terraform apply` in CloudShell.
### Terraform Azure: validate
### Azure Terraform: validate
Executes `terraform validate` command against the current project workspace. If run with terminal set to CloudShell, will run `terraform validate` in CloudShell.
### Terraform Azure: refresh
### Azure Terraform: refresh
Executes `terraform refresh` command against the current project workspace. If run with terminal set to CloudShell, will run `terraform refresh` in CloudShell.
### Terraform Azure: destroy
### Azure Terraform: destroy
Executes `terraform destroy` command against the current project workspace. If run with terminal set to CloudShell, will run `terraform destroy` in CloudShell.
### Terraform Azure: visualize
### Azure Terraform: visualize
> NOTE: only runs locally.
Creates a visual representation of the components of the module and save it in `graph.png`. This command requires [GraphViz dot](http://www.graphviz.org) to be installed locally.
### Terraform Azure: execute test
### Azure Terraform: execute test
Runs one of the following test against the current module using a test container:
@ -67,7 +67,7 @@ In both cases the default test container is "microsoft/terraform-test" and it ca
> NOTE: Running the tests in Azure will count against your Azure consumption.
### Terraform Azure: push
### Azure Terraform: push
This command will sync workspace files that meet the filter `tf-azure.files` setting in your configuration to Azure clouddrive.

2
package-lock.json сгенерированный
Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "vscode-terraform-azure",
"name": "vscode-azureerraform",
"version": "0.0.1",
"lockfileVersion": 1,
"requires": true,

Просмотреть файл

@ -1,13 +1,13 @@
{
"name": "vscode-terraform-azure",
"displayName": "vscode-terraform-azure",
"name": "vscode-azureterraform",
"displayName": "Azure Terraform",
"description": "VS Code extension for developing with Terraform on Azure",
"version": "0.0.1",
"publisher": "Microsoft",
"icon": "images/terraform.png",
"repository": {
"type": "git",
"url": "https://github.com/Azure/vscode-terraform-azure.git"
"url": "https://github.com/Azure/vscode-azureterraform.git"
},
"engines": {
"vscode": "^1.18.0"
@ -18,20 +18,20 @@
],
"activationEvents": [
"workspaceContains:**/*.tf",
"onCommand:vscode-terraform-azure.init",
"onCommand:vscode-terraform-azure.plan",
"onCommand:vscode-terraform-azure.apply",
"onCommand:vscode-terraform-azure.validate",
"onCommand:vscode-terraform-azure.refresh",
"onCommand:vscode-terraform-azure.destroy",
"onCommand:vscode-terraform-azure.visualize",
"onCommand:vscode-terraform-azure.exectest",
"onCommand:vscode-terraform-azure.push"
"onCommand:azureTerraform.init",
"onCommand:azureTerraform.plan",
"onCommand:azureTerraform.apply",
"onCommand:azureTerraform.validate",
"onCommand:azureTerraform.refresh",
"onCommand:azureTerraform.destroy",
"onCommand:azureTerraform.visualize",
"onCommand:azureTerraform.exectest",
"onCommand:azureTerraform.push"
],
"main": "./out/extension",
"contributes": {
"configuration": {
"title": "Terraform Azure",
"title": "Azure Terraform",
"properties": {
"tf-azure.terminal": {
"type": "string",
@ -72,49 +72,49 @@
},
"commands": [
{
"command": "vscode-terraform-azure.plan",
"command": "azureTerraform.plan",
"title": "plan",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.apply",
"command": "azureTerraform.apply",
"title": "apply",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.init",
"command": "azureTerraform.init",
"title": "init",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.validate",
"command": "azureTerraform.validate",
"title": "validate",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.refresh",
"command": "azureTerraform.refresh",
"title": "refresh",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.destroy",
"command": "azureTerraform.destroy",
"title": "destroy",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.visualize",
"command": "azureTerraform.visualize",
"title": "visualize",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.exectest",
"command": "azureTerraform.exectest",
"title": "execute test",
"category": "Terraform Azure"
"category": "Azure Terraform"
},
{
"command": "vscode-terraform-azure.push",
"command": "azureTerraform.push",
"title": "push",
"category": "Terraform Azure"
"category": "Azure Terraform"
}
]
},

Просмотреть файл

@ -162,7 +162,7 @@ export class CloudShell extends BaseShell {
DialogOption.CANCEL,
);
if (choice === DialogOption.OK) {
await vscode.commands.executeCommand("vscode-terraform-azure.push");
await vscode.commands.executeCommand("azureTerraform.push");
}
return true;
}

Просмотреть файл

@ -1,11 +1,7 @@
"use strict";
export class Constants {
public static ExtensionId = "vscode-terraform-azure";
public static LineSeperator = Array(50).join("=");
public static AzureAccountExtensionId = "ms-vscode.azure-account";
public static TerraformTerminalName = "Terraform";
public static UserAgentName = "VSCODEEXT_USER_AGENT";
public static TestContainer = "microsoft/terraform-test";
public static clouddrive = "$HOME/clouddrive";
}

Просмотреть файл

@ -22,31 +22,31 @@ export function activate(ctx: vscode.ExtensionContext) {
cloudShell = new CloudShell();
integratedShell = new IntegratedShell();
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.init", () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.init", () => {
getShell().runTerraformCmd("terraform init");
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.plan", () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.plan", () => {
getShell().runTerraformCmd("terraform plan");
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.apply", () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.apply", () => {
getShell().runTerraformCmd("terraform apply");
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.destroy", () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.destroy", () => {
getShell().runTerraformCmd("terraform destroy");
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.refresh", () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.refresh", () => {
getShell().runTerraformCmd("terraform refresh");
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.validate", () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.validate", () => {
getShell().runTerraformCmd("terraform validate");
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.visualize", async () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.visualize", async () => {
if (terminalSetToCloudshell()) {
const choice: vscode.MessageItem = await vscode.window.showInformationMessage(
"Visualization only works locally. Would you like to run it in the integrated terminal?",
@ -60,7 +60,7 @@ export function activate(ctx: vscode.ExtensionContext) {
await integratedShell.visualize();
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.exectest", async () => {
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.exectest", async () => {
console.log("Testing current module");
const pick: string = await vscode.window.showQuickPick(
[TestOption.lint, TestOption.e2e, TestOption.custom],
@ -77,8 +77,7 @@ export function activate(ctx: vscode.ExtensionContext) {
}));
ctx.subscriptions.push(vscode.commands.registerCommand("vscode-terraform-azure.push", async () => {
// Create a function that will sync the files to Cloudshell
ctx.subscriptions.push(vscode.commands.registerCommand("azureTerraform.push", async () => {
if (terminalSetToCloudshell()) {
const tfFiles: vscode.Uri[] = await vscode.workspace.findFiles(filesGlobSetting());
await cloudShell.pushFiles(tfFiles);

Просмотреть файл

@ -1,5 +1,5 @@
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
For vscode-terraform-azure extension
For vscode-azureterraform extension
This extension uses Open Source components. You can find the source code of their
open source projects along with the license information below. We acknowledge and