|
39 | 39 | "onCommand:tcTerraform.init",
|
40 | 40 | "onCommand:tcTerraform.plan",
|
41 | 41 | "onCommand:tcTerraform.apply",
|
42 |
| - "onCommand:tcTerraform.import", |
43 |
| - "onCommand:tcTerraform.validate", |
44 | 42 | "onCommand:tcTerraform.refresh",
|
45 | 43 | "onCommand:tcTerraform.destroy",
|
46 |
| - "onCommand:tcTerraform.visualize", |
47 |
| - "onCommand:tcTerraform.test", |
48 |
| - "onCommand:tcTerraform.push", |
49 | 44 | "onCommand:tcTerraformer.import",
|
50 |
| - "onCommand:tcTerraformer.plan", |
51 | 45 | "workspaceContains:**/*.tf",
|
52 | 46 | "onLanguage:terraform"
|
53 | 47 | ],
|
54 | 48 | "contributes": {
|
| 49 | + "menus": { |
| 50 | + "view/title": [ |
| 51 | + { |
| 52 | + "command": "tcTerraform.resourcesExplorer.refresh", |
| 53 | + "when": "view == tcTerraform.resourcesExplorer.cvm", |
| 54 | + "group": "navigation" |
| 55 | + } |
| 56 | + ] |
| 57 | + }, |
55 | 58 | "viewsContainers": {
|
56 | 59 | "activitybar": [
|
57 | 60 | {
|
|
65 | 68 | "views": {
|
66 | 69 | "tc-terraform-resources": [
|
67 | 70 | {
|
68 |
| - "id": "tcTerraform.sessionExplorer", |
69 |
| - "name": "%TcTerraform.view.session.explorer%", |
| 71 | + "id": "tcTerraform.loginExplorer", |
| 72 | + "name": "%TcTerraform.view.login%", |
70 | 73 | "contextualTitle": "Session Explorer",
|
71 | 74 | "visibility": "collapsed"
|
72 | 75 | },
|
73 | 76 | {
|
74 | 77 | "id": "tcTerraform.resourcesExplorer.cvm",
|
75 |
| - "name": "%TcTerraform.view.resource.explorer.cvm%", |
| 78 | + "name": "%TcTerraform.view.resource.cvm%", |
76 | 79 | "contextualTitle": "Resources Explorer",
|
77 | 80 | "visibility": "collapsed"
|
78 | 81 | },
|
79 | 82 | {
|
80 | 83 | "id": "tcTerraform.helpExplorer",
|
81 |
| - "name": "%TcTerraform.view.help.explorer%", |
| 84 | + "name": "%TcTerraform.view.help%", |
82 | 85 | "visibility": "collapsed"
|
83 | 86 | }
|
84 | 87 | ]
|
85 | 88 | },
|
| 89 | + "viewsWelcome": [ |
| 90 | + { |
| 91 | + "view": "tcTerraform.loginExplorer", |
| 92 | + "contents": "%TcTerraform.view.login.welcome%" |
| 93 | + }, |
| 94 | + { |
| 95 | + "view": "tcTerraform.resourcesExplorer.cvm", |
| 96 | + "contents": "%TcTerraform.view.login.welcome%" |
| 97 | + } |
| 98 | + ], |
86 | 99 | "languages": [
|
87 | 100 | {
|
88 | 101 | "id": "terraform",
|
|
101 | 114 | "commands": [
|
102 | 115 | {
|
103 | 116 | "command": "tcTerraform.login",
|
104 |
| - "title": "Login", |
| 117 | + "title": "Login: %TcTerraform.view.login.welcome%", |
105 | 118 | "category": "TencentCloud Terraform"
|
106 | 119 | },
|
| 120 | + { |
| 121 | + "command": "tcTerraform.resourcesExplorer.refresh", |
| 122 | + "title": "%TcTerraform.refresh%", |
| 123 | + "icon": { |
| 124 | + "light": "resources/light/refresh.svg", |
| 125 | + "dark": "resources/dark/refresh.svg" |
| 126 | + } |
| 127 | + }, |
107 | 128 | {
|
108 | 129 | "command": "tcTerraform.init",
|
109 | 130 | "title": "Init",
|
|
178 | 199 | ],
|
179 | 200 | "description": "Specifies terminal used to run Terraform commands. Valid settings are `cloudshell` or `integrated`."
|
180 | 201 | },
|
| 202 | + "tcTerraform.properties.secretId": { |
| 203 | + "type": "string", |
| 204 | + "default": "your_secretid", |
| 205 | + "description": "Input your Tencent Cloud secret Id." |
| 206 | + }, |
| 207 | + "tcTerraform.properties.secretKey": { |
| 208 | + "type": "string", |
| 209 | + "default": "your_secretkey", |
| 210 | + "description": "Input your Tencent Cloud secret key." |
| 211 | + }, |
181 | 212 | "tcTerraform.checkTerraformCmd": {
|
182 | 213 | "type": "boolean",
|
183 | 214 | "default": "true",
|
|
193 | 224 | "default": "true",
|
194 | 225 | "description": "Specifies whether or not TCCLI installed in the PATH."
|
195 | 226 | },
|
196 |
| - "tcTerraform.secretid.cmd": { |
197 |
| - "type": "string", |
198 |
| - "default": "tccli configure list | grep 'secretId'", |
199 |
| - "description": "Indicates how to get the secretid." |
200 |
| - }, |
201 |
| - "tcTerraform.secretkey.cmd": { |
202 |
| - "type": "string", |
203 |
| - "default": "tccli configure list | grep 'secretKey'", |
204 |
| - "description": "Indicates how to get the secretkey." |
205 |
| - }, |
206 |
| - "tcTerraform.secretid": { |
207 |
| - "type": "string", |
208 |
| - "default": "your_secretid", |
209 |
| - "description": "Input your tencentcloud secret key id." |
210 |
| - }, |
211 |
| - "tcTerraform.secretkey": { |
212 |
| - "type": "string", |
213 |
| - "default": "your_secretkey", |
214 |
| - "description": "Input your tencentcloud secret key." |
215 |
| - }, |
216 | 227 | "tcTerraform.test.path": {
|
217 | 228 | "type": "string",
|
218 | 229 | "default": "./",
|
|
0 commit comments