astro-vscode 0.26.2 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client.js +19 -19
- package/dist/browser/server.js +104 -104
- package/dist/node/client.js +20 -20
- package/dist/node/server.js +92 -92
- package/package.json +28 -2
- package/syntaxes/astro.tmLanguage.json +166 -0
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"color": "#FFBE2D",
|
|
24
24
|
"theme": "dark"
|
|
25
25
|
},
|
|
26
|
-
"version": "0.
|
|
26
|
+
"version": "0.28.0",
|
|
27
27
|
"author": "withastro",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"publisher": "astro-build",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prettier-plugin-astro": "^0.5.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@astrojs/language-server": "0.
|
|
43
|
+
"@astrojs/language-server": "0.28.0",
|
|
44
44
|
"@types/vscode": "^1.67.0",
|
|
45
45
|
"@vscode/test-electron": "^2.1.3",
|
|
46
46
|
"esbuild": "0.14.54",
|
|
@@ -85,8 +85,34 @@
|
|
|
85
85
|
{
|
|
86
86
|
"command": "astro.selectTypescriptVersion",
|
|
87
87
|
"title": "Astro: Select Typescript Version..."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"command": "astro.findFileReferences",
|
|
91
|
+
"title": "Astro: Find File References"
|
|
88
92
|
}
|
|
89
93
|
],
|
|
94
|
+
"menus": {
|
|
95
|
+
"editor/context": [
|
|
96
|
+
{
|
|
97
|
+
"command": "astro.findFileReferences",
|
|
98
|
+
"when": "editorLangId == astro",
|
|
99
|
+
"group": "4_search"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"editor/title/context": [
|
|
103
|
+
{
|
|
104
|
+
"command": "astro.findFileReferences",
|
|
105
|
+
"when": "resourceLangId == astro && resourceScheme == file"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"explorer/context": [
|
|
109
|
+
{
|
|
110
|
+
"command": "astro.findFileReferences",
|
|
111
|
+
"when": "resourceLangId == astro",
|
|
112
|
+
"group": "4_search"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
90
116
|
"configuration": {
|
|
91
117
|
"type": "object",
|
|
92
118
|
"title": "Astro configuration",
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
"repository": {
|
|
48
48
|
"astro:attribute": {
|
|
49
49
|
"patterns": [
|
|
50
|
+
{
|
|
51
|
+
"include": "#html:events"
|
|
52
|
+
},
|
|
50
53
|
{
|
|
51
54
|
"include": "#html:attribute"
|
|
52
55
|
},
|
|
@@ -356,6 +359,169 @@
|
|
|
356
359
|
{ "include": "#html:tag-attributes" }
|
|
357
360
|
]
|
|
358
361
|
},
|
|
362
|
+
"html:events": {
|
|
363
|
+
"name": "meta.attribute.event-handler.$1.html",
|
|
364
|
+
"begin": "on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur))(?![\\w:-])",
|
|
365
|
+
"beginCaptures": {
|
|
366
|
+
"0": {
|
|
367
|
+
"name": "entity.other.attribute-name.html"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"end": "(?=\\s*+[^=\\s])",
|
|
371
|
+
"patterns": [
|
|
372
|
+
{
|
|
373
|
+
"begin": "=",
|
|
374
|
+
"beginCaptures": {
|
|
375
|
+
"0": {
|
|
376
|
+
"name": "punctuation.separator.key-value.html"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
|
|
380
|
+
"patterns": [
|
|
381
|
+
{
|
|
382
|
+
"begin": "(?=[^\\s=<>`/]|/(?!>))",
|
|
383
|
+
"end": "(?!\\G)",
|
|
384
|
+
"name": "meta.embedded.line.js",
|
|
385
|
+
"patterns": [
|
|
386
|
+
{
|
|
387
|
+
"captures": {
|
|
388
|
+
"0": {
|
|
389
|
+
"name": "source.js"
|
|
390
|
+
},
|
|
391
|
+
"1": {
|
|
392
|
+
"patterns": [
|
|
393
|
+
{
|
|
394
|
+
"include": "source.js"
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"match": "(([^\\s\"'=<>`/]|/(?!>))+)",
|
|
400
|
+
"name": "string.unquoted.html"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"begin": "\"",
|
|
404
|
+
"beginCaptures": {
|
|
405
|
+
"0": {
|
|
406
|
+
"name": "punctuation.definition.string.begin.html"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"contentName": "source.js",
|
|
410
|
+
"end": "(\")",
|
|
411
|
+
"endCaptures": {
|
|
412
|
+
"0": {
|
|
413
|
+
"name": "punctuation.definition.string.end.html"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"name": "string.quoted.double.html",
|
|
417
|
+
"patterns": [
|
|
418
|
+
{
|
|
419
|
+
"captures": {
|
|
420
|
+
"0": {
|
|
421
|
+
"patterns": [
|
|
422
|
+
{
|
|
423
|
+
"include": "source.js"
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"match": "([^\\n\"/]|/(?![/*]))+"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"begin": "//",
|
|
432
|
+
"beginCaptures": {
|
|
433
|
+
"0": {
|
|
434
|
+
"name": "punctuation.definition.comment.js"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"end": "(?=\")|\\n",
|
|
438
|
+
"name": "comment.line.double-slash.js"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"begin": "/\\*",
|
|
442
|
+
"beginCaptures": {
|
|
443
|
+
"0": {
|
|
444
|
+
"name": "punctuation.definition.comment.begin.js"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"end": "(?=\")|\\*/",
|
|
448
|
+
"endCaptures": {
|
|
449
|
+
"0": {
|
|
450
|
+
"name": "punctuation.definition.comment.end.js"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"name": "comment.block.js"
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"begin": "'",
|
|
459
|
+
"beginCaptures": {
|
|
460
|
+
"0": {
|
|
461
|
+
"name": "punctuation.definition.string.begin.html"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"contentName": "source.js",
|
|
465
|
+
"end": "(')",
|
|
466
|
+
"endCaptures": {
|
|
467
|
+
"0": {
|
|
468
|
+
"name": "punctuation.definition.string.end.html"
|
|
469
|
+
},
|
|
470
|
+
"1": {
|
|
471
|
+
"name": "source.js-ignored-vscode"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"name": "string.quoted.single.html",
|
|
475
|
+
"patterns": [
|
|
476
|
+
{
|
|
477
|
+
"captures": {
|
|
478
|
+
"0": {
|
|
479
|
+
"patterns": [
|
|
480
|
+
{
|
|
481
|
+
"include": "source.js"
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"match": "([^\\n'/]|/(?![/*]))+"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"begin": "//",
|
|
490
|
+
"beginCaptures": {
|
|
491
|
+
"0": {
|
|
492
|
+
"name": "punctuation.definition.comment.js"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"end": "(?=')|\\n",
|
|
496
|
+
"name": "comment.line.double-slash.js"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"begin": "/\\*",
|
|
500
|
+
"beginCaptures": {
|
|
501
|
+
"0": {
|
|
502
|
+
"name": "punctuation.definition.comment.begin.js"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"end": "(?=')|\\*/",
|
|
506
|
+
"endCaptures": {
|
|
507
|
+
"0": {
|
|
508
|
+
"name": "punctuation.definition.comment.end.js"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"name": "comment.block.js"
|
|
512
|
+
}
|
|
513
|
+
]
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"match": "=",
|
|
519
|
+
"name": "invalid.illegal.unexpected-equals-sign.html"
|
|
520
|
+
}
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
},
|
|
359
525
|
"html:attribute": {
|
|
360
526
|
"name": "meta.attribute.$1.html",
|
|
361
527
|
"match": "([a-zA-Z\\-:@_.]+)(=?)",
|