@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
package/cli.js
CHANGED
|
@@ -30214,7 +30214,7 @@ var runMain3 = runMain2;
|
|
|
30214
30214
|
// package.json
|
|
30215
30215
|
var package_default = {
|
|
30216
30216
|
name: "@effect/language-service",
|
|
30217
|
-
version: "0.
|
|
30217
|
+
version: "0.73.0",
|
|
30218
30218
|
publishConfig: {
|
|
30219
30219
|
access: "public",
|
|
30220
30220
|
directory: "dist"
|
|
@@ -32796,7 +32796,9 @@ function make64(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
32796
32796
|
const sourceFile = program.getSourceFile(fileName);
|
|
32797
32797
|
if (!sourceFile) continue;
|
|
32798
32798
|
const resolvedPackages = getEffectRelatedPackages(sourceFile);
|
|
32799
|
-
|
|
32799
|
+
const effectPkgs = resolvedPackages["effect"];
|
|
32800
|
+
if (!effectPkgs) continue;
|
|
32801
|
+
for (const version of Object.keys(effectPkgs)) {
|
|
32800
32802
|
if (String(version).startsWith("4")) return "v4";
|
|
32801
32803
|
if (String(version).startsWith("3")) return "v3";
|
|
32802
32804
|
}
|
|
@@ -33203,7 +33205,7 @@ function make64(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
33203
33205
|
fn2("TypeParser.isEffectDataSourceFile")(function* (sourceFile) {
|
|
33204
33206
|
const moduleSymbol = typeChecker.getSymbolAtLocation(sourceFile);
|
|
33205
33207
|
if (!moduleSymbol) return yield* typeParserIssue("Node has no symbol", void 0, sourceFile);
|
|
33206
|
-
const taggedEnumSymbol = typeChecker.tryGetMemberInModuleExports("TaggedEnum", moduleSymbol);
|
|
33208
|
+
const taggedEnumSymbol = typeChecker.tryGetMemberInModuleExports("TaggedEnum", moduleSymbol) || typeChecker.tryGetMemberInModuleExports("taggedEnum", moduleSymbol);
|
|
33207
33209
|
if (!taggedEnumSymbol) return yield* typeParserIssue("TaggedEnum not found", void 0, sourceFile);
|
|
33208
33210
|
const taggedErrorSymbol = typeChecker.tryGetMemberInModuleExports("TaggedError", moduleSymbol);
|
|
33209
33211
|
if (!taggedErrorSymbol) return yield* typeParserIssue("TaggedError not found", void 0, sourceFile);
|