@effect/language-service 0.21.8 → 0.22.1
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/README.md +10 -6
- package/index.js +617 -433
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +258 -149
- package/transform.js.map +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ And you're done! You'll now be able to use a set of refactor and diagnostics tha
|
|
|
32
32
|
### Quickinfo
|
|
33
33
|
|
|
34
34
|
- Show the extended type of the current Effect
|
|
35
|
-
- Hovering yield
|
|
35
|
+
- Hovering `yield\*` of `Effect.gen` will show the Effect type parameters
|
|
36
36
|
- Hovering a variable assignment of a type Layer, will show info on how each service got involve
|
|
37
37
|
- Hovering a layer, will attempt to produce a graph
|
|
38
38
|
|
|
@@ -40,15 +40,18 @@ And you're done! You'll now be able to use a set of refactor and diagnostics tha
|
|
|
40
40
|
|
|
41
41
|
- Better error readability when you're missing errors or service types in your Effect definitions
|
|
42
42
|
- Floating Effects that are not yielded or run
|
|
43
|
-
- Wrong usage of yield inside Effect.gen
|
|
43
|
+
- Wrong usage of yield inside `Effect.gen`
|
|
44
44
|
- Multiple versions of Effect in your project
|
|
45
45
|
- Warn on leaking requirements in Effect services
|
|
46
|
-
- Unnecessary usages of Effect.gen or pipe()
|
|
46
|
+
- Unnecessary usages of `Effect.gen` or `pipe()`
|
|
47
|
+
- Warn when importing from a barrel file instead of from the module directly
|
|
47
48
|
|
|
48
49
|
### Completions
|
|
49
50
|
|
|
50
|
-
- Autocomplete 'Self' in Effect.Service
|
|
51
|
-
- Autocomplete Effect.gen with `function*(){}`
|
|
51
|
+
- Autocomplete 'Self' in `Effect.Service`, `Context.Tag`, `Schema.TaggedClass`, `Schema.TaggedRequest` and family
|
|
52
|
+
- Autocomplete `Effect.gen` with `function*(){}`
|
|
53
|
+
- Autocomplete `Effect.fn` with the span name given by the exported member
|
|
54
|
+
- Allow to configure packages to be imported with namespace style `import * as Effect from "effect"`
|
|
52
55
|
|
|
53
56
|
### Refactors
|
|
54
57
|
|
|
@@ -80,7 +83,8 @@ Few options can be provided alongside the initialization of the Language Service
|
|
|
80
83
|
},
|
|
81
84
|
"quickinfo": true, // controls quickinfo over Effect (default: true)
|
|
82
85
|
"completions": true, // controls Effect completions (default: true)
|
|
83
|
-
"allowedDuplicatedPackages": [] // list of package names that has effect in peer dependencies and are allowed to be duplicated (default: [])
|
|
86
|
+
"allowedDuplicatedPackages": [], // list of package names that has effect in peer dependencies and are allowed to be duplicated (default: [])
|
|
87
|
+
"namespaceImportPackages": [] // list of package names that should be preferred as imported with namespace imports e.g. ["effect"] (default: [])
|
|
84
88
|
}
|
|
85
89
|
]
|
|
86
90
|
}
|