Skip to content

Commit

Permalink
refactor: remove terraform cloud references
Browse files Browse the repository at this point in the history
  • Loading branch information
gamunu committed Jan 27, 2024
1 parent 54b6fae commit 11195b3
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 1,233 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
* @hashicorp/tf-editor-experience-engineers
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (c) 2016 HashiCorp, Inc.
Copyright (c) 2023 Gamunu Balagalla.

Mozilla Public License, version 2.0

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,3 +443,4 @@ See the [CHANGELOG](https://github.com/hashicorp/vscode-terraform/blob/main/CHAN
## Credits

- [Mikael Olenfalk](https://github.com/mauve) - creating and supporting the [vscode-terraform](https://github.com/mauve/vscode-terraform) extension, which was used as a starting point and inspiration for this extension.
- [Hashicorp Terraform](https://github.com/mauve) - creating and supporting the [vscode-terraform](https://github.com/hashicorp/vscode-terraform) extension, which was used as a starting point and inspiration for this extension.
13 changes: 2 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

252 changes: 7 additions & 245 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"icon": "assets/icons/terraform_logo_mark_light_universal.png",
"name": "terraform",
"displayName": "HashiCorp Terraform",
"description": "Syntax highlighting and autocompletion for Terraform",
"name": "opentofu",
"displayName": "OpenTofu",
"description": "Syntax highlighting and autocompletion for OpenTofu",
"version": "2.29.3",
"publisher": "hashicorp",
"appInsightsKey": "885372d2-6f3c-499f-9d25-b8b219983a52",
"publisher": "gamunu",
"license": "MPL-2.0",
"preview": false,
"private": true,
Expand Down Expand Up @@ -45,7 +44,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/hashicorp/vscode-terraform.git"
"url": "https://github.com/gamunu/vscode-opentofu.git"
},
"activationEvents": [
"onAuthenticationRequest:terraform",
Expand Down Expand Up @@ -461,70 +460,6 @@
"command": "terraform.providers.openDocumentation",
"title": "Open Documentation",
"icon": "$(book)"
},
{
"command": "terraform.cloud.login",
"title": "HashiCorp Terraform Cloud: Login",
"enablement": "terraform.cloud.signed-in === false"
},
{
"command": "terraform.cloud.workspaces.refresh",
"title": "Refresh",
"icon": "$(refresh)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.workspaces.viewInBrowser",
"title": "View workspace",
"icon": "$(globe)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.runs.refresh",
"title": "Refresh",
"icon": "$(refresh)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.run.viewInBrowser",
"title": "View run",
"icon": "$(globe)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.run.plan.downloadLog",
"title": "View raw plan log",
"icon": "$(console)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.run.viewPlan",
"title": "View plan output",
"icon": "$(output)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.run.apply.downloadLog",
"title": "View raw apply log",
"icon": "$(output)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.run.viewApply",
"title": "View apply output",
"icon": "$(output)"
},
{
"command": "terraform.cloud.organization.picker",
"title": "HashiCorp Terraform Cloud: Pick Organization",
"icon": "$(account)",
"enablement": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.workspaces.filterByProject",
"title": "Filter by project",
"icon": "$(filter)",
"enablement": "terraform.cloud.signed-in"
}
],
"menus": {
Expand Down Expand Up @@ -568,50 +503,6 @@
{
"command": "terraform.providers.openDocumentation",
"when": "false"
},
{
"command": "terraform.cloud.login",
"when": "terraform.cloud.signed-in === false && terraform.cloud.views.visible"
},
{
"command": "terraform.cloud.organization.picker",
"when": "terraform.cloud.signed-in"
},
{
"command": "terraform.cloud.workspaces.viewInBrowser",
"when": "false"
},
{
"command": "terraform.cloud.run.viewInBrowser",
"when": "false"
},
{
"command": "terraform.cloud.run.plan.downloadLog",
"when": "false"
},
{
"command": "terraform.cloud.run.viewPlan",
"when": "false"
},
{
"command": "terraform.cloud.runs.refresh",
"when": "false"
},
{
"command": "terraform.cloud.run.apply.downloadLog",
"when": "false"
},
{
"command": "terraform.cloud.run.viewApply",
"when": "false"
},
{
"command": "terraform.cloud.workspaces.filterByProject",
"when": "false"
},
{
"command": "terraform.cloud.workspaces.refresh",
"when": "false"
}
],
"view/title": [
Expand All @@ -629,26 +520,6 @@
"command": "terraform.initCurrent",
"when": "view == terraform.providers",
"group": "navigation"
},
{
"command": "terraform.cloud.workspaces.filterByProject",
"when": "view == terraform.cloud.workspaces",
"group": "navigation"
},
{
"command": "terraform.cloud.organization.picker",
"when": "view == terraform.cloud.workspaces",
"group": "navigation"
},
{
"command": "terraform.cloud.workspaces.refresh",
"when": "view == terraform.cloud.workspaces",
"group": "navigation"
},
{
"command": "terraform.cloud.runs.refresh",
"when": "view == terraform.cloud.runs",
"group": "navigation"
}
],
"view/item/context": [
Expand All @@ -659,36 +530,6 @@
{
"command": "terraform.providers.openDocumentation",
"when": "view == terraform.providers && viewItem == moduleProviderHasDocs"
},
{
"command": "terraform.cloud.workspaces.viewInBrowser",
"when": "view == terraform.cloud.workspaces && viewItem =~ /hasLink/",
"group": "inline"
},
{
"command": "terraform.cloud.run.viewInBrowser",
"when": "view == terraform.cloud.runs && viewItem =~ /isRun/",
"group": "inline"
},
{
"command": "terraform.cloud.run.plan.downloadLog",
"when": "view == terraform.cloud.runs && viewItem =~ /hasRawPlan/",
"group": "inline"
},
{
"command": "terraform.cloud.run.viewPlan",
"when": "view == terraform.cloud.runs && viewItem =~ /hasStructuredPlan/",
"group": "inline"
},
{
"command": "terraform.cloud.run.apply.downloadLog",
"when": "view == terraform.cloud.runs && viewItem =~ /hasRawApply/",
"group": "inline"
},
{
"command": "terraform.cloud.run.viewApply",
"when": "view == terraform.cloud.runs && viewItem =~ /hasStructuredApply/",
"group": "inline"
}
]
},
Expand All @@ -702,50 +543,14 @@
"id": "terraform.modules",
"name": "Module Calls"
}
],
"terraform-cloud": [
{
"id": "terraform.cloud.workspaces",
"name": "Workspaces",
"contextualTitle": "Terraform Cloud workspaces"
},
{
"id": "terraform.cloud.runs",
"name": "Runs",
"contextualTitle": "Terraform Cloud runs"
}
],
"terraform-cloud-panel": [
{
"id": "terraform.cloud.run.plan",
"name": "Plan",
"when": "terraform.cloud.run.viewingPlan"
},
{
"id": "terraform.cloud.run.apply",
"name": "Apply",
"when": "terraform.cloud.run.viewingApply"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "terraform",
"title": "HashiCorp Terraform",
"id": "opentofu",
"title": "OpenTofu",
"icon": "assets/icons/vs_code_terraform.svg"
},
{
"id": "terraform-cloud",
"title": "HashiCorp Terraform Cloud",
"icon": "assets/icons/vs_code_terraform_cloud.svg"
}
],
"panel": [
{
"id": "terraform-cloud-panel",
"title": "Terraform Cloud",
"icon": "assets/icons/vs_code_terraform_cloud.svg"
}
]
},
Expand All @@ -757,48 +562,6 @@
{
"view": "terraform.modules",
"contents": "The active editor cannot provide information about installed modules. [Learn more about modules](https://www.terraform.io/docs/language/modules/develop/index.html) You may need to run 'terraform get' or update your language server version."
},
{
"view": "terraform.cloud.workspaces",
"contents": "In order to use Terraform Cloud features, you need to be logged in\n[Login to Terraform Cloud](command:terraform.cloud.login)",
"when": "terraform.cloud.signed-in === false"
},
{
"view": "terraform.cloud.workspaces",
"contents": "No organizations found for this token. Please create a new Terraform Cloud organization to get started\n[Create or select an organization](command:terraform.cloud.organization.picker)",
"when": "terraform.cloud.signed-in && !terraform.cloud.organizationsExist && !terraform.cloud.organizationsChosen"
},
{
"view": "terraform.cloud.workspaces",
"contents": "Please choose an organization:\n[Select a organization](command:terraform.cloud.organization.picker)",
"when": "terraform.cloud.signed-in && terraform.cloud.organizationsExist && !terraform.cloud.organizationsChosen"
},
{
"view": "terraform.cloud.workspaces",
"contents": "There are no workspaces in this organization.\n[Create a new workspace](command:terraform.cloud.workspaces.picker)\n[Choose a different organization](command:terraform.cloud.organization.picker)",
"when": "terraform.cloud.signed-in && terraform.cloud.organizationsExist && terraform.cloud.organizationsChosen && !terraform.cloud.projectFilterUsed && !terraform.cloud.workspacesExist && !terraform.cloud.pendingOrgMembership"
},
{
"view": "terraform.cloud.workspaces",
"contents": "You have not yet accepted the invitation to this organization\n[See pending invitations](command:terraform.cloud.organization.viewInBrowser)\n[Choose a different organization](command:terraform.cloud.organization.picker)",
"when": "terraform.cloud.signed-in && terraform.cloud.organizationsExist && terraform.cloud.organizationsChosen && !terraform.cloud.projectFilterUsed && !terraform.cloud.workspacesExist && terraform.cloud.pendingOrgMembership"
},
{
"view": "terraform.cloud.workspaces",
"contents": "There are no workspaces in this project\n[Create a new workspace](command:terraform.cloud.workspaces.picker)\n[Clear filter](command:terraform.cloud.workspaces.resetProjectFilter)",
"when": "terraform.cloud.signed-in && terraform.cloud.organizationsExist && terraform.cloud.organizationsChosen && terraform.cloud.projectFilterUsed && !terraform.cloud.workspacesExist"
},
{
"view": "terraform.cloud.runs",
"contents": "Select a workspace to view a list of runs"
},
{
"view": "terraform.cloud.run.plan",
"contents": "Select a run to view a plan"
},
{
"view": "terraform.cloud.run.apply",
"contents": "Select a run to view an apply"
}
]
},
Expand All @@ -823,7 +586,6 @@
"check-format": "npm run prettier -- --check"
},
"dependencies": {
"@vscode/extension-telemetry": "^0.4.9",
"@zodios/core": "^10.9.2",
"@zodios/plugins": "^10.6.0",
"axios": "^1.4.0",
Expand Down
30 changes: 0 additions & 30 deletions src/terraformCloud/account.ts

This file was deleted.

Loading

0 comments on commit 11195b3

Please sign in to comment.