astro-vscode 2.0.0-next.10 → 2.0.0-next.12

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.
Binary file
@@ -224225,8 +224225,10 @@ var require_astro = __commonJS({
224225
224225
  function walk2() {
224226
224226
  return ts.forEachChild(sourceFile, function cb(node) {
224227
224227
  if (ts.isCallExpression(node) && node.expression.getText() === "Astro.glob") {
224228
- const globText = node.arguments.at(0).getText().slice(1, -1);
224229
- globcodeLens.push(getGlobResultAsCodeLens(globText, (0, node_path_1.dirname)(context.env.uriToFileName(document2.uri)), document2.positionAt(node.arguments.pos)));
224228
+ const globArgument = node.arguments.at(0);
224229
+ if (globArgument) {
224230
+ globcodeLens.push(getGlobResultAsCodeLens(globArgument.getText().slice(1, -1), (0, node_path_1.dirname)(context.env.uriToFileName(document2.uri)), document2.positionAt(node.arguments.pos)));
224231
+ }
224230
224232
  }
224231
224233
  return ts.forEachChild(node, cb);
224232
224234
  });
@@ -65,7 +65,7 @@ var require_package = __commonJS({
65
65
  "../language-server/package.json"(exports2, module2) {
66
66
  module2.exports = {
67
67
  name: "@astrojs/language-server",
68
- version: "2.0.0-next.10",
68
+ version: "2.0.0-next.12",
69
69
  author: "withastro",
70
70
  license: "MIT",
71
71
  repository: {
@@ -246436,8 +246436,10 @@ var require_astro = __commonJS({
246436
246436
  function walk2() {
246437
246437
  return ts.forEachChild(sourceFile, function cb(node) {
246438
246438
  if (ts.isCallExpression(node) && node.expression.getText() === "Astro.glob") {
246439
- const globText = node.arguments.at(0).getText().slice(1, -1);
246440
- globcodeLens.push(getGlobResultAsCodeLens(globText, (0, node_path_1.dirname)(context.env.uriToFileName(document2.uri)), document2.positionAt(node.arguments.pos)));
246439
+ const globArgument = node.arguments.at(0);
246440
+ if (globArgument) {
246441
+ globcodeLens.push(getGlobResultAsCodeLens(globArgument.getText().slice(1, -1), (0, node_path_1.dirname)(context.env.uriToFileName(document2.uri)), document2.positionAt(node.arguments.pos)));
246442
+ }
246441
246443
  }
246442
246444
  return ts.forEachChild(node, cb);
246443
246445
  });
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.0.0-next.10",
27
+ "version": "2.0.0-next.12",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -208,7 +208,7 @@
208
208
  ]
209
209
  },
210
210
  "devDependencies": {
211
- "@astrojs/language-server": "^2.0.0-next.10",
211
+ "@astrojs/language-server": "^2.0.0-next.12",
212
212
  "@types/glob": "^8.1.0",
213
213
  "@types/mocha": "^10.0.1",
214
214
  "@types/node": "^16.18.26",