@xaendar/vscode-client 0.9.30 → 0.9.31
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 +1 -1
- package/server/server.cjs +9 -13
- package/server/server.cjs.map +1 -1
package/package.json
CHANGED
package/server/server.cjs
CHANGED
|
@@ -228271,12 +228271,16 @@ function resolveExpression(expression, compilerContext, options) {
|
|
|
228271
228271
|
function emitNode(node, parent, compilerContext, options) {
|
|
228272
228272
|
if ((0, import_typescript3.isIdentifier)(node) && needsResolution(node, parent)) {
|
|
228273
228273
|
const text = node.text;
|
|
228274
|
-
if (
|
|
228274
|
+
if (options.skipResolution) {
|
|
228275
|
+
return { expression: text };
|
|
228276
|
+
}
|
|
228277
|
+
if (compilerContext.hasUnresolvableIdentifier(text)) {
|
|
228275
228278
|
return { expression: text, reactive: compilerContext.getUnresolvableIdentifierKind(text) === "signal" };
|
|
228276
228279
|
}
|
|
228277
|
-
|
|
228278
|
-
|
|
228279
|
-
|
|
228280
|
+
if (compilerContext.hasIdentifier(text)) {
|
|
228281
|
+
const kind = compilerContext.getIdentifierKind(text);
|
|
228282
|
+
const access = `context.get('${text}')`;
|
|
228283
|
+
return kind === "signal" ? { expression: `${access}()`, reactive: true } : { expression: access, reactive: false };
|
|
228280
228284
|
}
|
|
228281
228285
|
if (options.resolver) {
|
|
228282
228286
|
return { expression: `${options.resolver}.${text}` };
|
|
@@ -228296,14 +228300,6 @@ function emitNode(node, parent, compilerContext, options) {
|
|
|
228296
228300
|
});
|
|
228297
228301
|
return { expression: `${result.expression}${slice(sourceText, lastEnd, node.getEnd())}`, reactive: result.reactive };
|
|
228298
228302
|
}
|
|
228299
|
-
function resolveIdentifierAccess(text, compilerContext) {
|
|
228300
|
-
if (compilerContext.hasIdentifier(text)) {
|
|
228301
|
-
const kind = compilerContext.getIdentifierKind(text);
|
|
228302
|
-
const access = `context.get('${text}')`;
|
|
228303
|
-
return kind === "signal" ? { expression: `${access}()`, reactive: true } : { expression: access, reactive: false };
|
|
228304
|
-
}
|
|
228305
|
-
return void 0;
|
|
228306
|
-
}
|
|
228307
228303
|
function containsResolvableIdentifier(node, parent) {
|
|
228308
228304
|
if ((0, import_typescript3.isIdentifier)(node) && needsResolution(node, parent)) {
|
|
228309
228305
|
return true;
|
|
@@ -228630,7 +228626,7 @@ var Generator = class {
|
|
|
228630
228626
|
this._nodeToProcess.clear();
|
|
228631
228627
|
const compilerContext = new CompilerContext();
|
|
228632
228628
|
for (let i2 = 0; i2 < signals.length; i2++) {
|
|
228633
|
-
compilerContext.addUnresolvableIdentifier(signals[i2]
|
|
228629
|
+
compilerContext.addUnresolvableIdentifier(`this.${signals[i2]}`, "signal");
|
|
228634
228630
|
}
|
|
228635
228631
|
const generatedCode = [
|
|
228636
228632
|
"_render() {",
|