@effect/language-service 0.20.1 → 0.21.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
@@ -19,9 +19,9 @@ This package implements a TypeScript language service plugin that allows additio
19
19
  }
20
20
  ```
21
21
 
22
- 3. Ensure that you set your editor to use your workspace TypeScript version.
22
+ 3. Ensure that you have installed TypeScript locally in your project and set your editor to use your workspace TypeScript version.
23
23
 
24
- - In VSCode you can do this by pressing "F1" and typing "TypeScript: Select TypeScript version". Then select "Use workspace version".
24
+ - In VSCode you can do this by pressing "F1" and typing "TypeScript: Select TypeScript version". Then select "Use workspace version". If that option does not appear, TypeScript is not installed locally in your node_modules.
25
25
  - In JetBrains you may have to disable the Vue language service, and chose the workspace version of TypeScript in the settings from the dropdown.
26
26
  - In NVim with nvim-vtsls you should refer to [how to enable TypeScript plugins in vstls](https://github.com/yioneko/vtsls?tab=readme-ov-file#typescript-plugin-not-activated)
27
27
 
@@ -41,8 +41,9 @@ And you're done! You'll now be able to use a set of refactor and diagnostics tha
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
43
  - Wrong usage of yield inside Effect.gen
44
- - Unnecessary usages of Effect.gen
45
44
  - Multiple versions of Effect in your project
45
+ - Warn on leaking requirements in Effect services
46
+ - Unnecessary usages of Effect.gen or pipe()
46
47
 
47
48
  ### Completions
48
49
 
@@ -74,6 +75,9 @@ Few options can be provided alongside the initialization of the Language Service
74
75
  {
75
76
  "name": "@effect/language-service",
76
77
  "diagnostics": true, // controls Effect diagnostics (default: true)
78
+ "diagnosticSeverity": { // allows to change per-rule default severity of the diagnostic in the whole project
79
+ "floatingEffect": "warning" // example for a rule, allowed values are off,error,warning,message,suggestion
80
+ },
77
81
  "quickinfo": true, // controls quickinfo over Effect (default: true)
78
82
  "completions": true, // controls Effect completions (default: true)
79
83
  "allowedDuplicatedPackages": [] // list of package names that has effect in peer dependencies and are allowed to be duplicated (default: [])