-
Notifications
You must be signed in to change notification settings - Fork 180
/
package.json
458 lines (455 loc) · 15 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
{
"icon": "terraform.png",
"name": "terraform",
"displayName": "HashiCorp Terraform",
"description": "Syntax highlighting and autocompletion for Terraform",
"version": "2.21.0",
"publisher": "hashicorp",
"appInsightsKey": "885372d2-6f3c-499f-9d25-b8b219983a52",
"license": "MPL-2.0",
"preview": false,
"private": true,
"extensionKind": [
"workspace",
"ui"
],
"engines": {
"npm": "~8.X",
"node": "~16.X",
"vscode": "^1.61.0"
},
"langServer": {
"version": "0.26.0"
},
"syntax": {
"version": "0.2.0"
},
"qna": "https://discuss.hashicorp.com/c/terraform-core/terraform-editor-integrations/46",
"bugs": {
"url": "https://github.com/hashicorp/vscode-terraform/issues",
"email": "terraform-vscode@hashicorp.com"
},
"categories": [
"Programming Languages",
"Other",
"Formatters",
"Linters"
],
"keywords": [
"devops",
"terraform",
"hcl"
],
"repository": {
"type": "git",
"url": "https://github.com/hashicorp/vscode-terraform.git"
},
"activationEvents": [
"onLanguage:terraform",
"onLanguage:terraform-vars",
"onView:terraform-modules",
"workspaceContains:**/*.tf",
"workspaceContains:**/*.tfvars",
"onCommand:terraform.enableLanguageServer"
],
"main": "./out/extension",
"contributes": {
"languages": [
{
"id": "terraform",
"aliases": [
"Terraform",
"terraform"
],
"extensions": [
".tf"
],
"configuration": "./language-configuration.json"
},
{
"id": "terraform-vars",
"extensions": [
".tfvars"
],
"configuration": "./language-configuration.json"
},
{
"id": "json",
"extensions": [
".tfstate"
]
}
],
"grammars": [
{
"language": "terraform",
"scopeName": "source.hcl.terraform",
"path": "./syntaxes/terraform.tmGrammar.json"
},
{
"language": "terraform-vars",
"scopeName": "source.hcl.terraform",
"path": "./syntaxes/terraform.tmGrammar.json"
}
],
"semanticTokenTypes": [
{"id": "hcl-attrName", "superType": "property", "description": "Attribute name"},
{"id": "hcl-blockType", "superType": "type", "description": "Block type"},
{"id": "hcl-blockLabel", "superType": "enumMember", "description": "Block label"},
{"id": "hcl-bool", "superType": "keyword", "description": "Boolean"},
{"id": "hcl-string", "superType": "string", "description": "String"},
{"id": "hcl-number", "superType": "number", "description": "Number"},
{"id": "hcl-objectKey", "superType": "parameter", "description": "Object key"},
{"id": "hcl-mapKey", "superType": "parameter", "description": "Map key"},
{"id": "hcl-keyword", "superType": "variable", "description": "Keyword"},
{"id": "hcl-traversalStep", "superType": "variable", "description": "Traversal step"},
{"id": "hcl-typeCapsule", "superType": "keyword", "description": "Type (complex)"},
{"id": "hcl-typePrimitive", "superType": "keyword", "description": "Type (primitive)"}
],
"semanticTokenScopes": [
{
"scopes": {
"hcl-attrName": ["variable.other.property"],
"hcl-blockType": ["entity.name.type"],
"hcl-blockLabel": ["variable.other.enummember"],
"hcl-bool": ["keyword.control"],
"hcl-string": ["string"],
"hcl-number": ["constant.numeric"],
"hcl-objectKey": ["variable.parameter"],
"hcl-mapKey": ["variable.parameter"],
"hcl-keyword": ["keyword.control"],
"hcl-traversalStep": ["variable.other.readwrite"],
"hcl-typeCapsule": ["keyword.control"],
"hcl-typePrimitive": ["keyword.control"]
}
}
],
"semanticTokenModifiers": [
{"id": "hcl-dependent", "description": "Dependent"},
{"id": "terraform-data", "description": "Data source"},
{"id": "terraform-locals", "description": "Locals"},
{"id": "terraform-module", "description": "Module"},
{"id": "terraform-output", "description": "Output"},
{"id": "terraform-provider", "description": "Provider"},
{"id": "terraform-resource", "description": "Resource"},
{"id": "terraform-provisioner", "description": "Provisioner"},
{"id": "terraform-connection", "description": "Connection"},
{"id": "terraform-variable", "description": "Variable"},
{"id": "terraform-terraform", "description": "Terraform"},
{"id": "terraform-backend", "description": "Backend"},
{"id": "terraform-name", "description": "Name"},
{"id": "terraform-type", "description": "Type"},
{"id": "terraform-requiredProviders", "description": "Required providers"}
],
"snippets": [
{
"language": "terraform",
"path": "./snippets/terraform.json"
}
],
"configuration": [
{
"title": "General",
"order": 0,
"properties": {
"terraform.codelens.referenceCount": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Display reference counts above top level blocks and attributes."
}
}
},
{
"title": "Language Server",
"order": 1,
"properties": {
"terraform.languageServer": {
"order": "0",
"type": "object",
"description": "Language Server settings",
"properties": {
"external": {
"type": "boolean",
"default": true,
"description": "Whether an external language server binary should be launched."
},
"pathToBinary": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to language server binary (optional)"
},
"args": {
"scope": "resource",
"type": "array",
"default": [
"serve"
],
"description": "Arguments to pass to language server binary"
},
"maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server.",
"deprecationMessage": "Deprecated: This setting is not used by the extension and will be removed in a future release"
},
"trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
},
"default": {
"external": true,
"pathToBinary": "",
"args": [
"serve"
],
"maxNumberOfProblems": 100,
"trace.server": "off"
}
},
"terraform.languageServer.ignoreSingleFileWarning": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "This setting controls whether terraform-ls sends a warning about opening up a single Terraform file instead of a Terraform folder. Setting this to `true` will prevent the message being sent. The default value is `false`."
},
"terraform-ls.rootModules": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Per-workspace list of module directories for the language server to read"
},
"terraform-ls.terraformExecPath": {
"scope": "resource",
"type": "string",
"description": "Path to the Terraform binary"
},
"terraform-ls.terraformExecTimeout": {
"scope": "resource",
"type": "string",
"description": "Overrides Terraform execution timeout (e.g. 30s)"
},
"terraform-ls.terraformLogFilePath": {
"scope": "resource",
"type": "string",
"description": "Path to a file for Terraform executions to be logged into (TF_LOG_PATH) with support for variables (e.g. timestamp, pid, ppid) via Go template syntax {{varName}}"
},
"terraform-ls.excludeRootModules": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Per-workspace list of module directories for the language server to exclude"
},
"terraform-ls.ignoreDirectoryNames": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Per-workspace list of directory names for the language server to ignore when indexing files"
}
}
},
{
"title": "Experimental Features",
"order": 3,
"properties": {
"terraform-ls.experimentalFeatures": {
"scope": "resource",
"type": "object",
"description": "Experimental (opt-in) terraform-ls features",
"properties": {
"validateOnSave": {
"scope": "resource",
"type": "boolean",
"default": false
},
"prefillRequiredFields": {
"scope": "resource",
"type": "boolean",
"default": false
}
}
}
}
}
],
"commands": [
{
"command": "terraform.generateBugReport",
"title": "Terraform: Generate Bug Report"
},
{
"command": "terraform.enableLanguageServer",
"title": "Terraform: Enable Language Server"
},
{
"command": "terraform.disableLanguageServer",
"title": "Terraform: Disable Language Server"
},
{
"command": "terraform.init",
"title": "Terraform: init"
},
{
"command": "terraform.initCurrent",
"title": "Terraform: init current folder"
},
{
"command": "terraform.validate",
"title": "Terraform: validate"
},
{
"command": "terraform.plan",
"title": "Terraform: plan"
},
{
"command": "terraform.modules.refreshList",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "terraform.modules.openDocumentation",
"title": "Open Documentation",
"icon": "$(book)"
},
{
"command": "terraform.providers.openDocumentation",
"title": "Open Documentation",
"icon": "$(book)"
}
],
"menus": {
"commandPalette": [
{
"command": "terraform.modules.refreshList",
"when": "false"
},
{
"command": "terraform.modules.openDocumentation",
"when": "false"
},
{
"command": "terraform.providers.openDocumentation",
"when": "false"
}
],
"view/title": [
{
"command": "terraform.modules.refreshList",
"when": "view == terraform.modules",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "terraform.modules.openDocumentation",
"when": "view == terraform.modules"
},
{
"command": "terraform.providers.openDocumentation",
"when": "view == terraform.providers && viewItem == moduleProviderHasDocs"
}
]
},
"views": {
"explorer": [
{
"id": "terraform.providers",
"name": "Terraform Providers",
"icon": "assets/icons/terraform.svg",
"visibility": "collapsed",
"when": "terraform.showTreeViews"
},
{
"id": "terraform.modules",
"name": "Terraform Module Calls",
"icon": "assets/icons/terraform.svg",
"visibility": "collapsed",
"when": "terraform.showTreeViews"
}
]
},
"viewsWelcome": [
{
"view": "terraform.providers",
"contents": "The active editor cannot provide information about installed providers. [Learn more about providers](https://www.terraform.io/docs/language/providers/index.html). You may need to update your language server version."
},
{
"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."
}
]
},
"scripts": {
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"compile": "npm run esbuild",
"watch": "npm run download:artifacts && npm run esbuild-watch",
"download:artifacts": "ts-node ./build/downloader.ts",
"vscode:prepublish": "npm run download:artifacts && npm run esbuild-base -- --minify",
"package": "vsce package",
"test-compile": "tsc -p ./",
"pretest": "npm run download:artifacts && npm run test-compile && npm run lint",
"test": "node ./out/test/runTest.js",
"test:unit": "jest",
"lint": "eslint src --ext ts",
"prettier": "prettier \"**/*.+(js|json|ts)\"",
"format": "npm run prettier -- --write",
"check-format": "npm run prettier -- --check",
"preview": "ts-node ./build/preview.ts"
},
"dependencies": {
"@vscode/extension-telemetry": "^0.4.9",
"short-unique-id": "^3.2.3",
"vscode-languageclient": "^7.0.0",
"vscode-uri": "^3.0.2",
"which": "^2.0.2"
},
"devDependencies": {
"@hashicorp/js-releases": "^1.4.0",
"@types/chai": "^4.2.22",
"@types/glob": "^7.1.3",
"@types/jest": "^27.0.3",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.7",
"@types/vscode": "^1.61.1",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"@vscode/test-electron": "^2.0.1",
"chai": "^4.3.4",
"esbuild": "^0.14.11",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"glob": "^7.1.6",
"got": "^11.8.3",
"jest": "^27.4.3",
"mocha": "^9.1.3",
"prettier": "^2.3.2",
"ts-jest": "^27.1.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.2",
"vsce": "^2.6.6",
"vscode-tmgrammar-test": "^0.0.11"
}
}