@effect/language-service 0.77.0 → 0.78.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/README.md +2 -1
- package/cli.js +1447 -761
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +409 -124
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +425 -147
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +409 -124
- package/transform.js.map +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,7 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
|
|
|
79
79
|
- Suggest using `Schema.TaggedStruct` instead of `Schema.Struct` when a `_tag` field with `Schema.Literal` is present to make the tag optional in the constructor
|
|
80
80
|
- Warn when using `yield* Effect.fail()` with yieldable error types that can be yielded directly
|
|
81
81
|
- Warn when the global `Error` type is used in an Effect failure channel, recommending tagged errors
|
|
82
|
+
- Warn when an `Effect` computation is placed in an Effect failure channel, since failure channels should contain only failure types
|
|
82
83
|
- Warn when `Layer.mergeAll` contains layers with interdependencies (where one layer provides a service that another layer in the same call requires)
|
|
83
84
|
- Suggest using `Effect.fn` for functions that return `Effect.gen` for better tracing and concise syntax
|
|
84
85
|
- Warn when `Effect.fn` or `Effect.fnUntraced` is used as an IIFE (Immediately Invoked Function Expression), suggesting `Effect.gen` instead
|
|
@@ -158,7 +159,7 @@ Few options can be provided alongside the initialization of the Language Service
|
|
|
158
159
|
"importAliases": { "Array": "Arr" }, // allows to chose some different names for import name aliases (only when not chosing to import the whole module) (default: {})
|
|
159
160
|
"noExternal": false, // disables features that provides links to external websites (such as links to mermaidchart.com) (default: false)
|
|
160
161
|
"keyPatterns": [{ "target": "service", "pattern": "default", "skipLeadingPath": ["src/"] }], // configure the key patterns; recommended reading more on the section "Configuring Key Patterns"
|
|
161
|
-
"effectFn": ["span"], // what types of Effect.fn you want to get suggested, zero or multiple between "untraced" for fnUntraced, "span" for Effect.fn with span, "
|
|
162
|
+
"effectFn": ["span"], // what types of Effect.fn you want to get suggested, zero or multiple between "untraced" for fnUntraced, "span" for Effect.fn with explicit withSpan span, "suggested-span" for Effect.fn with a broadly suggested name from local context, "inferred-span" for Effect.fn with inferred exported declaration names, "no-span" for Effect.fn with no span (default: ["span"])
|
|
162
163
|
"layerGraphFollowDepth": 0, // controls the depth level that the layer graph will follow when resolving layer dependencies, depth is counted only when exiting the currently hovered/analyzed layer definition (default: 0)
|
|
163
164
|
"mermaidProvider": "mermaid.live" // which provider to use for mermaid, can also be a uri like http://localhost:8080 if running mermaid-live-editor locally.
|
|
164
165
|
}
|