@effect/language-service 0.62.5 → 0.63.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 CHANGED
@@ -74,10 +74,11 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
74
74
  - Warn when using `Schema.Union` with multiple `Schema.Literal` calls that can be simplified to a single `Schema.Literal` call
75
75
  - 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
76
76
  - Warn when using `yield* Effect.fail()` with yieldable error types that can be yielded directly
77
+ - Warn when using `Effect.fail` with the global `Error` type, recommending tagged errors
77
78
 
78
79
  ### Completions
79
80
 
80
- - Autocomplete 'Self' in `Effect.Service`, `Context.Tag`, `Schema.TaggedClass`, `Schema.TaggedRequest` and family
81
+ - Autocomplete 'Self' in `Effect.Service`, `Context.Tag`, `Schema.TaggedClass`, `Schema.TaggedRequest`, `Model.Class` and family
81
82
  - Autocomplete `Effect.gen` with `function*(){}`
82
83
  - Autocomplete `Effect.fn` with the span name given by the exported member
83
84
  - Completions for DurationInput string millis/seconds/etc...
@@ -228,6 +229,9 @@ Found 1 error in index.ts:3
228
229
 
229
230
  The effect language service plugin comes with a builtin CLI tool that can be used to perform various utilities, checks and setups. Since it relies on typescript, we recommend to install it locally and run it locally to ensure it loads the same typescript version of your project rather than a global installation that may resolve to use a different TS version from the one of your project.
230
231
 
232
+ ### `effect-language-service setup`
233
+ Runs through a wizard to setup/update some basic functionalities of the LSP in an interactive way.
234
+
231
235
  ### `effect-language-service codegen`
232
236
  Automatically updates Effect codegens in your TypeScript files. This command scans files for `@effect-codegens` directives and applies the necessary code transformations. Use `--file` to update a specific file, or `--project` with a tsconfig file to update an entire project. The `--verbose` flag provides detailed output about which files are being processed and updated.
233
237