-
Notifications
You must be signed in to change notification settings - Fork 58
/
package.json
269 lines (269 loc) · 6.24 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
{
"name": "crystal-lang",
"displayName": "Crystal Language",
"description": "The Crystal Programming Language",
"version": "0.9.5",
"publisher": "crystal-lang-tools",
"icon": "images/icon.gif",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/crystal-lang-tools/vscode-crystal-lang"
},
"bugs": "https://github.com/crystal-lang-tools/vscode-crystal-lang/issues",
"engines": {
"vscode": "^1.70.0"
},
"keywords": [
"crystal",
"syntax",
"languages"
],
"categories": [
"Programming Languages",
"Snippets",
"Themes",
"Formatters",
"Keymaps"
],
"galleryBanner": {
"color": "#000000",
"theme": "dark"
},
"main": "./out/main.js",
"activationEvents": [
"workspaceContains:*/shard.yml",
"workspaceContains:*/shard.override.yml"
],
"contributes": {
"languages": [
{
"id": "crystal",
"aliases": [
"Crystal",
"crystal"
],
"extensions": [
".cr"
],
"configuration": "./crystal-configuration.json"
},
{
"id": "ecr",
"aliases": [
"Embedded Crystal"
],
"extensions": [
".ecr"
],
"configuration": "./ecr-configuration.json"
},
{
"id": "slang",
"aliases": [
"Crystal Slang"
],
"extensions": [
".slang"
],
"configuration": "./slang-configuration.json"
},
{
"id": "crystal-markdown-injection"
}
],
"grammars": [
{
"language": "crystal",
"scopeName": "source.crystal",
"path": "./syntaxes/crystal.json"
},
{
"language": "ecr",
"scopeName": "text.ecr",
"path": "./syntaxes/ecr.json"
},
{
"language": "slang",
"scopeName": "text.slang",
"path": "./syntaxes/slang.json"
},
{
"language": "crystal-markdown-injection",
"scopeName": "markdown.crystal.codeblock",
"path": "./syntaxes/codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.crystal": "crystal"
}
}
],
"snippets": [
{
"language": "crystal",
"path": "./snippets/crystal.json"
},
{
"language": "ecr",
"path": "./snippets/ecr.json"
},
{
"language": "slang",
"path": "./snippets/slang.json"
}
],
"taskDefinitions": [
{
"type": "crystal",
"required": [
"command"
],
"properties": {
"command": {
"type": "string"
},
"args": {
"type": "array"
},
"file": {
"type": "string"
}
}
},
{
"type": "shards",
"required": [
"command"
],
"properties": {
"command": {
"type": "string"
},
"args": {
"type": "array"
}
}
}
],
"configuration": {
"type": "object",
"title": "Crystal Lang configuration",
"properties": {
"crystal-lang.compiler": {
"title": "Compiler",
"type": "string",
"default": "crystal",
"description": "The path to the Crystal compiler."
},
"crystal-lang.shards": {
"title": "Shards",
"type": "string",
"default": "shards",
"description": "The path to the Shards executable."
},
"crystal-lang.server": {
"type": "string",
"default": "",
"description": "[Experimental][Reload required]\nAbsolute path for Scry/Crystalline LSP server binary\n(Language Server Protocol for Crystal)."
},
"crystal-lang.server-env": {
"type": "object",
"default": {},
"description": "[Experimental][Reload required]\nEnvironment object to pass to the LSP"
},
"crystal-lang.main": {
"type": "string",
"default": null,
"description": "Specify the main file for the tools.\nDoes not work with multi-root workspaces."
},
"crystal-lang.spec-explorer": {
"type": "boolean",
"default": false,
"description": "[Reload required]\nShow specs in the Test Explorer."
},
"crystal-lang.spec-tags": {
"type": "string",
"default": "",
"description": "Tags to pass to the spec runner, i.e. '--tag hello --tag ~world'"
},
"crystal-lang.hover": {
"type": "boolean",
"default": true,
"description": "[Reload required]\nShow type information on hover."
},
"crystal-lang.definitions": {
"type": "boolean",
"default": true,
"description": "[Reload required]\nEnables jump to definition."
},
"crystal-lang.problems": {
"type": "boolean",
"default": true,
"description": "[Reload required]\nEnable problems finder. Runs the Crystal compiler on save and reports any problems found."
},
"crystal-lang.dependencies": {
"type": "boolean",
"default": true,
"description": "Use the dependencies tool to determine main for each file. Can be slow."
},
"crystal-lang.flags": {
"type": "string",
"default": "",
"description": "Compile-time flags to pass to the compiler, i.e. '-Dflag1 -Dflag2'.\nFlags are shared across multi-root workspaces."
},
"crystal-lang.disable-gc": {
"type": "boolean",
"default": false,
"description": "Disable garbage collection for running the compiler tools. Can improve performance at the expense of memory."
}
}
},
"commands": [
{
"command": "crystal-lang.showMacroExpansion",
"title": "Show macro expansion"
}
],
"menus": {
"editor/context": [
{
"command": "crystal-lang.showMacroExpansion",
"group": "z_commands"
}
]
}
},
"scripts": {
"format": "prettier --write ./src/**/*.ts",
"package": "vsce package",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"dependencies": {
"async-mutex": "^0.4.0",
"junit2json": "~3.1.4",
"temp": "~0.9.4",
"vscode-languageclient": "^8.1.0",
"yaml": "^2.1.1"
},
"devDependencies": {
"@types/express-serve-static-core": "^4.17.30",
"@types/node": "^14.11.1",
"@types/temp": "^0.9.4",
"@types/vscode": "^1.70.0",
"@vscode/vsce": "^2.22.0",
"esbuild": "^0.19.8",
"minimist": ">=1.2.2",
"prettier": "^2.8.4",
"typescript": "^4.0.3"
},
"prettier": {
"arrowParens": "avoid",
"singleQuote": true
}
}