@effect/language-service 0.58.3 → 0.58.4
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/cli.js +11 -2
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +11 -2
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +13 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +11 -2
- package/transform.js.map +1 -1
package/package.json
CHANGED
package/transform.js
CHANGED
|
@@ -2576,7 +2576,16 @@ function make2(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
2576
2576
|
const moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile);
|
|
2577
2577
|
if (!moduleSymbol) continue;
|
|
2578
2578
|
const memberSymbol = typeChecker.tryGetMemberInModuleExports(memberName, moduleSymbol);
|
|
2579
|
-
if (memberSymbol
|
|
2579
|
+
if (memberSymbol) {
|
|
2580
|
+
if (memberSymbol === symbol3) {
|
|
2581
|
+
result.push({ memberSymbol, moduleSymbol, sourceFile });
|
|
2582
|
+
} else if (memberSymbol.flags & ts.SymbolFlags.Alias) {
|
|
2583
|
+
const aliased = typeChecker.getAliasedSymbol(memberSymbol);
|
|
2584
|
+
if (aliased === symbol3) {
|
|
2585
|
+
result.push({ memberSymbol, moduleSymbol, sourceFile });
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2580
2589
|
}
|
|
2581
2590
|
if (result.length > 0) {
|
|
2582
2591
|
return result;
|
|
@@ -5593,7 +5602,7 @@ var annotate = createCodegen({
|
|
|
5593
5602
|
const initializerTypeNode = fromNullable(typeCheckerUtils.typeToSimplifiedTypeNode(
|
|
5594
5603
|
initializerType,
|
|
5595
5604
|
enclosingNode,
|
|
5596
|
-
ts.NodeBuilderFlags.NoTruncation
|
|
5605
|
+
ts.NodeBuilderFlags.NoTruncation | ts.NodeBuilderFlags.IgnoreErrors
|
|
5597
5606
|
)).pipe(
|
|
5598
5607
|
getOrUndefined
|
|
5599
5608
|
);
|