forked from withastro/language-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
391 lines (391 loc) · 12.4 KB
/
package.json
File metadata and controls
391 lines (391 loc) · 12.4 KB
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
{
"name": "astro-vscode",
"displayName": "Astro",
"description": "Language support for Astro",
"categories": [
"Programming Languages",
"Formatters",
"Linters"
],
"qna": false,
"keywords": [
"astro",
"node",
"typescript",
"javascript",
"vue",
"svelte",
"Static site generator"
],
"icon": "assets/icon.png",
"type": "commonjs",
"galleryBanner": {
"color": "#17191E",
"theme": "dark"
},
"version": "0.29.7",
"author": "withastro",
"license": "MIT",
"publisher": "astro-build",
"scripts": {
"build": "pnpm build:node & pnpm build:browser",
"dev": "pnpm build:node --watch & pnpm build:browser --watch",
"build:node": "node ./scripts/build-node.js",
"build:browser": "node ./scripts/build-browser.js",
"build:ci:node": "pnpm build:node & pnpm build:browser --empty",
"build:ci:browser": "pnpm build:browser & pnpm build:node --empty",
"build:grammar": "npx js-yaml syntaxes/astro.tmLanguage.src.yaml > syntaxes/astro.tmLanguage.json",
"test": "pnpm test:vscode && pnpm test:grammar",
"test:vscode": "node ./test/runTest.js",
"test:grammar": "pnpm build:grammar && node ./test/grammar/test.mjs",
"update-grammar-snapshots": "node ./test/grammar/test.mjs --updateSnapshot"
},
"engines": {
"vscode": "^1.67.0"
},
"activationEvents": [
"onLanguage:astro",
"workspaceContains:astro.config.*"
],
"dependencies": {
"@astrojs/compiler": "^1.1.1",
"@astrojs/ts-plugin": "0.4.4",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.8.0",
"synckit": "0.8.4"
},
"devDependencies": {
"@astrojs/language-server": "0.29.6",
"@types/mocha": "^9.1.0",
"@types/vscode": "^1.67.0",
"@vscode/test-electron": "^2.1.3",
"esbuild": "0.14.54",
"esbuild-plugin-copy": "^1.3.0",
"glob": "^8.0.3",
"js-yaml": "^4.1.0",
"kleur": "^4.1.5",
"mocha": "^9.2.2",
"path-browserify": "^1.0.1",
"typescript": "~4.8.2",
"vscode-languageclient": "^8.0.1",
"vscode-tmgrammar-test": "^0.1.1"
},
"main": "./dist/node/client.js",
"browser": "./dist/browser/client.js",
"files": [
"dist/",
"languages/",
"syntaxes/"
],
"repository": {
"type": "git",
"url": "https://github.com/withastro/language-tools.git",
"directory": "packages/vscode"
},
"contributes": {
"typescriptServerPlugins": [
{
"name": "@astrojs/ts-plugin",
"enableForWorkspaceTypeScriptVersions": true
}
],
"commands": [
{
"command": "astro.restartLanguageServer",
"title": "Astro: Restart Language Server"
},
{
"command": "astro.showTSXOutput",
"title": "Astro: Debug: Show TSX Output"
},
{
"command": "astro.selectTypescriptVersion",
"title": "Astro: Select Typescript Version..."
},
{
"command": "astro.findFileReferences",
"title": "Astro: Find File References"
}
],
"menus": {
"commandPalette": [
{
"command": "astro.restartLanguageServer",
"when": "editorLangId == astro"
},
{
"command": "astro.showTSXOutput",
"when": "editorLangId == astro"
},
{
"command": "astro.selectTypescriptVersion",
"when": "editorLangId == astro"
},
{
"command": "astro.findFileReferences",
"when": "editorLangId == astro"
}
],
"editor/context": [
{
"command": "astro.findFileReferences",
"when": "editorLangId == astro",
"group": "4_search"
}
],
"editor/title/context": [
{
"command": "astro.findFileReferences",
"when": "resourceLangId == astro && resourceScheme == file"
}
],
"explorer/context": [
{
"command": "astro.findFileReferences",
"when": "resourceLangId == astro",
"group": "4_search"
}
]
},
"breakpoints": [
{
"language": "astro"
}
],
"configuration": {
"type": "object",
"title": "Astro configuration",
"properties": {
"astro.language-server.ls-path": {
"type": "string",
"title": "Language Server: Path",
"description": "Path to the language server executable. You won't need this in most cases, set this only when needing a specific version of the language server"
},
"astro.language-server.runtime": {
"scope": "application",
"type": "string",
"title": "Language Server: Runtime",
"description": "Path to the node executable used to execute the language server. You won't need this in most cases"
},
"astro.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"astro.typescript.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript",
"description": "Enable TypeScript features"
},
"astro.typescript.allowArbitraryAttributes": {
"type": "boolean",
"default": false,
"title": "TypeScript: Allow arbitrary attributes on HTML elements",
"description": "Enable the usage of non-standard HTML attributes, such as the ones added by AlpineJS or petite-vue"
},
"astro.typescript.diagnostics.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Diagnostics",
"description": "Enable diagnostic messages for TypeScript"
},
"astro.typescript.hover.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Hover Info",
"description": "Enable hover info for TypeScript"
},
"astro.typescript.documentSymbols.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Symbols in Outline",
"description": "Enable document symbols for TypeScript"
},
"astro.typescript.completions.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Completions",
"description": "Enable completions for TypeScript"
},
"astro.typescript.definitions.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Go to Definition",
"description": "Enable go to definition for TypeScript"
},
"astro.typescript.codeActions.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Code Actions",
"description": "Enable code actions for TypeScript"
},
"astro.typescript.signatureHelp.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Signature Help",
"description": "Enable signature help (parameter hints) for TypeScript"
},
"astro.typescript.rename.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Rename",
"description": "Enable rename functionality for JS/TS variables inside Astro files"
},
"astro.typescript.semanticTokens.enabled": {
"type": "boolean",
"default": true,
"title": "TypeScript: Semantic Tokens",
"description": "Enable semantic tokens (used for semantic highlighting) for TypeScript."
},
"astro.html.enabled": {
"type": "boolean",
"default": true,
"title": "HTML",
"description": "Enable HTML features"
},
"astro.html.hover.enabled": {
"type": "boolean",
"default": true,
"title": "HTML: Hover Info",
"description": "Enable hover info for HTML"
},
"astro.html.completions.enabled": {
"type": "boolean",
"default": true,
"title": "HTML: Completions",
"description": "Enable completions for HTML"
},
"astro.html.completions.emmet": {
"type": "boolean",
"default": true,
"title": "HTML: Emmet Completions",
"description": "Enable Emmet completions for HTML"
},
"astro.html.tagComplete.enabled": {
"type": "boolean",
"default": true,
"title": "HTML: Tag Completion",
"description": "Enable tag completion for HTML"
},
"astro.html.documentSymbols.enabled": {
"type": "boolean",
"default": true,
"title": "HTML: Symbols in Outline",
"description": "Enable document symbols for CSS"
},
"astro.css.enabled": {
"type": "boolean",
"default": true,
"title": "CSS",
"description": "Enable CSS features"
},
"astro.css.hover.enabled": {
"type": "boolean",
"default": true,
"title": "CSS: Hover Info",
"description": "Enable hover info for CSS"
},
"astro.css.completions.enabled": {
"type": "boolean",
"default": true,
"title": "CSS: Completions",
"description": "Enable completions for CSS"
},
"astro.css.completions.emmet": {
"type": "boolean",
"default": true,
"title": "CSS: Emmet Completions",
"description": "Enable Emmet completions for CSS"
},
"astro.css.documentColors.enabled": {
"type": "boolean",
"default": true,
"title": "CSS: Document Colors",
"description": "Enable color picker for CSS"
},
"astro.css.documentSymbols.enabled": {
"type": "boolean",
"default": true,
"title": "CSS: Symbols in Outline",
"description": "Enable document symbols for CSS"
},
"astro.format.indentFrontmatter": {
"deprecationMessage": "The `astro.format` settings are deprecated. Formatting is now powered by Prettier and can be configured through a Prettier configuration file.",
"type": "boolean",
"default": false,
"title": "Formatting: Indent frontmatter",
"description": "Indent the formatter by one level of indentation"
},
"astro.format.newLineAfterFrontmatter": {
"deprecationMessage": "The `astro.format` settings are deprecated. Formatting is now powered by Prettier and can be configured through a Prettier configuration file.",
"type": "boolean",
"default": true,
"title": "Formatting: Add line return after the frontmatter",
"description": "Add a line return between the frontmatter and the template"
}
}
},
"languages": [
{
"id": "astro",
"extensions": [
".astro"
],
"aliases": [
"Astro"
],
"configuration": "./languages/astro-language-configuration.json",
"icon": {
"light": "./assets/lang-icon-light.svg",
"dark": "./assets/lang-icon-dark.svg"
}
}
],
"grammars": [
{
"language": "astro",
"scopeName": "source.astro",
"path": "./syntaxes/astro.tmLanguage.json",
"embeddedLanguages": {
"text.html": "html",
"text.html.markdown": "markdown",
"source.css": "css",
"source.css.less": "less",
"source.css.scss": "scss",
"source.sass": "sass",
"source.stylus": "stylus",
"source.js": "javascript",
"source.ts": "typescript",
"source.json": "json",
"source.tsx": "typescriptreact"
},
"unbalancedBracketScopes": [
"keyword.operator.relational",
"storage.type.function.arrow",
"keyword.operator.bitwise.shift",
"meta.brace.angle",
"punctuation.definition.tag"
]
},
{
"scopeName": "text.html.markdown.astro",
"path": "./syntaxes/markdown.astro.tmLanguage.json",
"injectTo": [
"text.html.markdown",
"source.astro"
],
"embeddedLanguages": {
"meta.embedded.block.astro": "astro",
"meta.embedded.block.astro.frontmatter": "typescriptreact"
}
}
]
}
}