@effect/language-service 0.25.0 → 0.26.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 CHANGED
@@ -47,6 +47,7 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
47
47
  - Unnecessary usages of `Effect.gen` or `pipe()`
48
48
  - Warn when importing from a barrel file instead of from the module directly
49
49
  - Warn on usage of try/catch inside `Effect.gen` and family
50
+ - Detect unnecessary pipe chains like `X.pipe(Y).pipe(Z)`
50
51
 
51
52
  ### Completions
52
53
 
@@ -67,6 +68,7 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
67
68
  - Toggle return type signature: With a single refactor, adds or removes type annotations from the definition.
68
69
  - Remove unnecessary `Effect.gen` definitions that contains a single `yield` statement.
69
70
  - Wrap an `Effect` expression with `Effect.gen`
71
+ - Toggle between pipe styles `X.pipe(Y)` and `pipe(X, Y)`
70
72
 
71
73
  ### Miscellaneous
72
74
  - "Go to definition" for RpcClient will resolve to the Rpc definition
@@ -119,8 +121,9 @@ Your `tsconfig.json` should look like this:
119
121
 
120
122
  To get diagnostics you need to install `ts-patch` which will make it possible to run `tspc`.
121
123
 
122
- Running `tspc` in your project will now also run the plugin and give you the diagnostics at compile time.
123
- Effect diagnostics will be shown only after standard TypeScript diagnostics have been satisfied.
124
+ Running `tspc` in your project will now also run the plugin and give you the error diagnostics at compile time.
125
+ Effect error diagnostics will be shown only after standard TypeScript diagnostics have been satisfied.
126
+ Beware that setting noEmit will completely skip the effect diagnostics.
124
127
 
125
128
  ```ts
126
129
  $ npx tspc