@effect/language-service 0.65.0 → 0.67.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 +5 -0
- package/cli.js +1254 -668
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +730 -332
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +730 -332
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +730 -332
- package/transform.js.map +1 -1
package/README.md
CHANGED
|
@@ -73,6 +73,8 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
|
|
|
73
73
|
- Warn when catch callbacks in `Effect.tryPromise`, `Effect.tryMap`, or `Effect.tryMapPromise` return `unknown` or `any` types
|
|
74
74
|
- Warn when catch callbacks in `Effect.tryPromise`, `Effect.try`, `Effect.tryMap`, or `Effect.tryMapPromise` return the global `Error` type instead of typed errors
|
|
75
75
|
- Warn when using `Effect.runSync`, `Effect.runPromise`, `Effect.runFork`, or `Effect.runCallback` inside an Effect
|
|
76
|
+
- Warn when using `Schema.decodeSync`, `Schema.decodeUnknownSync`, `Schema.encodeSync`, or `Schema.encodeUnknownSync` inside Effect generators, suggesting Effect-based alternatives
|
|
77
|
+
- Suggest using Effect Schema for JSON operations instead of `JSON.parse`/`JSON.stringify` inside Effect contexts
|
|
76
78
|
- Warn when using `Schema.Union` with multiple `Schema.Literal` calls that can be simplified to a single `Schema.Literal` call
|
|
77
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
|
|
78
80
|
- Warn when using `yield* Effect.fail()` with yieldable error types that can be yielded directly
|
|
@@ -206,6 +208,9 @@ Automatically updates Effect codegens in your TypeScript files. This command sca
|
|
|
206
208
|
### `effect-language-service diagnostics`
|
|
207
209
|
Provides a way to get through a CLI the list of Effect specific diagnostics; without patching your typescript installation. A --file option may be used to get diagnostics for a specific file, or --project with a tsconfig file to get an entire project.
|
|
208
210
|
|
|
211
|
+
### `effect-language-service quickfixes`
|
|
212
|
+
Shows diagnostics that have available quick fixes along with their proposed code changes. This is useful for previewing what fixes the language service can apply to your code. Use `--file` to check a specific file, or `--project` with a tsconfig file to check an entire project. The output displays each diagnostic with its location and the diff of proposed changes.
|
|
213
|
+
|
|
209
214
|
### `effect-language-service check`
|
|
210
215
|
This command runs a check of the setup of the patching mechanism of the LSP, to understand if typescript has been patched or not.
|
|
211
216
|
|