@effect/language-service 0.72.1 → 0.73.0
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 +5 -3
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +4 -2
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +124 -72
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +4 -2
- package/transform.js.map +1 -1
|
@@ -2602,7 +2602,9 @@ function make2(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
2602
2602
|
const sourceFile = program.getSourceFile(fileName);
|
|
2603
2603
|
if (!sourceFile) continue;
|
|
2604
2604
|
const resolvedPackages = getEffectRelatedPackages(sourceFile);
|
|
2605
|
-
|
|
2605
|
+
const effectPkgs = resolvedPackages["effect"];
|
|
2606
|
+
if (!effectPkgs) continue;
|
|
2607
|
+
for (const version of Object.keys(effectPkgs)) {
|
|
2606
2608
|
if (String(version).startsWith("4")) return "v4";
|
|
2607
2609
|
if (String(version).startsWith("3")) return "v3";
|
|
2608
2610
|
}
|
|
@@ -3009,7 +3011,7 @@ function make2(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
3009
3011
|
fn("TypeParser.isEffectDataSourceFile")(function* (sourceFile) {
|
|
3010
3012
|
const moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile);
|
|
3011
3013
|
if (!moduleSymbol) return yield* typeParserIssue("Node has no symbol", void 0, sourceFile);
|
|
3012
|
-
const taggedEnumSymbol = typeChecker.tryGetMemberInModuleExports("TaggedEnum", moduleSymbol);
|
|
3014
|
+
const taggedEnumSymbol = typeChecker.tryGetMemberInModuleExports("TaggedEnum", moduleSymbol) || typeChecker.tryGetMemberInModuleExports("taggedEnum", moduleSymbol);
|
|
3013
3015
|
if (!taggedEnumSymbol) return yield* typeParserIssue("TaggedEnum not found", void 0, sourceFile);
|
|
3014
3016
|
const taggedErrorSymbol = typeChecker.tryGetMemberInModuleExports("TaggedError", moduleSymbol);
|
|
3015
3017
|
if (!taggedErrorSymbol) return yield* typeParserIssue("TaggedError not found", void 0, sourceFile);
|