astro-vscode 2.16.14 → 2.16.16

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/package.json CHANGED
@@ -24,12 +24,12 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.16.14",
27
+ "version": "2.16.16",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
31
31
  "engines": {
32
- "vscode": "^1.92.0"
32
+ "vscode": "^1.101.0"
33
33
  },
34
34
  "activationEvents": [
35
35
  "workspaceContains:astro.config.*"
@@ -235,11 +235,12 @@
235
235
  ]
236
236
  },
237
237
  "devDependencies": {
238
- "@astrojs/language-server": "^2.16.6",
239
- "@astrojs/ts-plugin": "^1.10.7",
238
+ "@astrojs/language-server": "^2.16.9",
239
+ "@astrojs/ts-plugin": "^1.10.9",
240
+ "@types/js-yaml": "^4.0.9",
240
241
  "@types/mocha": "^10.0.10",
241
242
  "@types/node": "^20.9.0",
242
- "@types/vscode": "^1.92.0",
243
+ "@types/vscode": "^1.101.0",
243
244
  "@volar/language-server": "~2.4.28",
244
245
  "@volar/vscode": "~2.4.28",
245
246
  "@vscode/test-cli": "^0.0.12",
@@ -250,18 +251,18 @@
250
251
  "js-yaml": "^4.1.1",
251
252
  "kleur": "^4.1.5",
252
253
  "mocha": "^11.7.5",
253
- "ovsx": "^0.10.9",
254
+ "ovsx": "^0.10.10",
255
+ "tsx": "^4.21.0",
254
256
  "vscode-languageclient": "^9.0.1",
255
257
  "vscode-tmgrammar-test": "^0.1.3"
256
258
  },
257
259
  "dependencies": {
258
260
  "@astrojs/compiler": "^2.13.1",
259
- "prettier": "^3.8.1",
261
+ "prettier": "^3.8.2",
260
262
  "prettier-plugin-astro": "^0.14.1"
261
263
  },
262
264
  "scripts": {
263
- "prebuild": "cd ../ts-plugin && pnpm build",
264
- "build": "tsc && pnpm prebuild && node scripts/build.mjs -- --minify",
265
+ "build": "tsc -b && node scripts/build.mjs -- --minify",
265
266
  "dev": "node scripts/build.mjs -- --watch",
266
267
  "build:grammar": "node scripts/build-grammar.mjs",
267
268
  "dev:grammar": "node scripts/build-grammar.mjs -- --watch",
package/scripts/build.mjs CHANGED
@@ -72,8 +72,8 @@ export default async function build() {
72
72
  await builder.watch();
73
73
 
74
74
  process.on('beforeExit', () => {
75
- builder.dispose && builder.dispose();
75
+ void builder.dispose?.();
76
76
  });
77
77
  }
78
78
 
79
- build();
79
+ void build();
@@ -17,9 +17,9 @@
17
17
  "name": "entity.name.function.markdown"
18
18
  }
19
19
  },
20
- "end": "(^\\1)\\s*$",
20
+ "end": "(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)",
21
21
  "endCaptures": {
22
- "3": {
22
+ "1": {
23
23
  "name": "punctuation.definition.markdown"
24
24
  }
25
25
  },
@@ -27,7 +27,7 @@
27
27
  "patterns": [
28
28
  {
29
29
  "begin": "(^|\\G)(\\s*)(.*)",
30
- "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
30
+ "while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)",
31
31
  "patterns": [
32
32
  {
33
33
  "begin": "^\\s*---\\s*$",
@@ -1,5 +1,6 @@
1
- const assert = require('node:assert');
2
- const vscode = require('vscode');
1
+ import 'mocha';
2
+ import assert from 'node:assert';
3
+ import vscode from 'vscode';
3
4
 
4
5
  suite('Extension Test Suite', () => {
5
6
  vscode.window.showInformationMessage('Start all tests.');
@@ -56,4 +56,4 @@ async function snapShotTest() {
56
56
  }
57
57
  }
58
58
 
59
- snapShotTest();
59
+ void snapShotTest();
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../../configs/tsconfig.language-tools.json",
3
+ "references": [
4
+ { "path": "../language-server/tsconfig.json" },
5
+ { "path": "../ts-plugin/tsconfig.json" }
6
+ ]
7
+ }
package/tsconfig.json CHANGED
@@ -1,10 +1,5 @@
1
1
  {
2
- "extends": "../tsconfig.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./dist",
6
- "emitDeclarationOnly": true,
7
- "checkJs": true
8
- },
9
- "include": ["src"]
2
+ "extends": "../../../configs/tsconfig.base.json",
3
+ "include": ["./scripts/*.mjs"],
4
+ "references": [{ "path": "./tsconfig.build.json" }, { "path": "./tsconfig.test.json" }]
10
5
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "../../../configs/tsconfig.test.json",
3
+ "include": ["test/**/*.mts", "test/**/*.mjs", "test/**/*.ts", ".vscode-test.*"],
4
+ "references": [{ "path": "./tsconfig.build.json" }]
5
+ }
package/.vscode-test.js DELETED
@@ -1,13 +0,0 @@
1
- const { defineConfig } = require('@vscode/test-cli');
2
-
3
- module.exports = defineConfig([
4
- {
5
- label: 'unitTests',
6
- files: 'test/**/*.test.js',
7
- version: 'stable',
8
- mocha: {
9
- ui: 'tdd',
10
- timeout: 20000,
11
- },
12
- },
13
- ]);