@xaendar/vscode-client 0.9.25 → 0.9.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/vscode-client",
3
- "version": "0.9.25",
3
+ "version": "0.9.27",
4
4
  "description": "",
5
5
  "author": "Kaitenjo",
6
6
  "license": "MIT",
package/server/server.cjs CHANGED
@@ -227512,7 +227512,7 @@ function createShim(componentData, typecheckBody) {
227512
227512
  return shim;
227513
227513
  }
227514
227514
  function buildTypecheckShim(componentData, shimPath, body) {
227515
- const prefixLinesLength = componentData.length + 3;
227515
+ const prefixLinesLength = componentData.length + 4;
227516
227516
  const prefixLines = new Array(prefixLinesLength).fill("");
227517
227517
  const classNames = new Array();
227518
227518
  for (let i2 = 0; i2 < componentData.length; i2++) {
@@ -227520,6 +227520,7 @@ function buildTypecheckShim(componentData, shimPath, body) {
227520
227520
  classNames.push(...classes);
227521
227521
  prefixLines[i2] = `import { ${classes.join(", ")} } from './${(0, import_node_path2.basename)(path, (0, import_node_path2.extname)(path))}';`;
227522
227522
  }
227523
+ prefixLines[prefixLinesLength - 4] = "import { Signal } from '@xaendar/core/signals'";
227523
227524
  prefixLines[prefixLinesLength - 2] = `declare const root: ${classNames.join(" & ")};`;
227524
227525
  return {
227525
227526
  code: [...prefixLines, body].join("\n"),
@@ -228279,7 +228280,7 @@ function emitNode(node, parent, compilerContext, options) {
228279
228280
  let lastEnd = node.getStart();
228280
228281
  (0, import_typescript3.forEachChild)(node, (child) => {
228281
228282
  const { expression, reactive } = emitNode(child, node, compilerContext, options);
228282
- result = { expression: `${result}${slice(sourceText, lastEnd, child.getStart())}${expression}`, reactive: result.reactive || reactive };
228283
+ result = { expression: `${result.expression}${slice(sourceText, lastEnd, child.getStart())}${expression}`, reactive: result.reactive || reactive };
228283
228284
  lastEnd = child.getEnd();
228284
228285
  });
228285
228286
  return { expression: `${result.expression}${slice(sourceText, lastEnd, node.getEnd())}`, reactive: result.reactive };
@@ -230844,18 +230845,14 @@ function typeCheckFor(node, processNode, context) {
230844
230845
  forContext.addUnresolvableIdentifier(identifiers[i2], "signal");
230845
230846
  }
230846
230847
  const lines = new Array();
230847
- lines.push(line(
230848
- `for (const ${node.itemAlias} of root.`,
230849
- mapped(node.iterableSource, node.span),
230850
- `) {`
230851
- ));
230848
+ lines.push(line(`for (const ${node.itemAlias} of root.`, mapped(node.iterableSource, node.span), `) {`));
230852
230849
  lines.push(...indentLines([
230853
- plain(`let ${indexName}!: number;`),
230854
- plain(`let ${firstName}!: boolean;`),
230855
- plain(`let ${lastName}!: boolean;`),
230856
- plain(`let ${evenName}!: boolean;`),
230857
- plain(`let ${oddName}!: boolean;`),
230858
- line(mapped(`${resolveExpression(node.trackExpression, context).expression};`, node.span)),
230850
+ plain(`let ${indexName}!: Signal<number>;`),
230851
+ plain(`let ${firstName}!: Signal<boolean>;`),
230852
+ plain(`let ${lastName}!: Signal<boolean>;`),
230853
+ plain(`let ${evenName}!: Signal<boolean>;`),
230854
+ plain(`let ${oddName}!: Signal<boolean>;`),
230855
+ line(mapped(`${resolveExpression(node.trackExpression, forContext).expression};`, node.span)),
230859
230856
  ...node.children.flatMap((child) => processNode(child, forContext))
230860
230857
  ]));
230861
230858
  lines.push(plain("}"));