@effect/language-service 0.27.0 → 0.27.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 +2 -1
- package/cli.js +5 -1
- package/cli.js.map +1 -1
- package/index.js +58 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +5 -1
- package/transform.js.map +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
|
|
|
32
32
|
### Quickinfo
|
|
33
33
|
|
|
34
34
|
- Show the extended type of the current Effect
|
|
35
|
-
- Hovering `yield
|
|
35
|
+
- Hovering `yield*` of `Effect.gen` will show the Effect type parameters
|
|
36
36
|
- Hovering a variable assignment of a type Layer, will show info on how each service got involved
|
|
37
37
|
- Hovering a layer, will attempt to produce a graph
|
|
38
38
|
|
|
@@ -56,6 +56,7 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
|
|
|
56
56
|
- Autocomplete `Effect.fn` with the span name given by the exported member
|
|
57
57
|
- Completions for DurationInput string millis/seconds/etc...
|
|
58
58
|
- Allow to configure packages to be imported with namespace style `import * as Effect from "effect"`
|
|
59
|
+
- Suggest brand when using `Schema.brand`
|
|
59
60
|
- Effect comment directives
|
|
60
61
|
|
|
61
62
|
### Refactors
|
package/cli.js
CHANGED
|
@@ -30284,7 +30284,11 @@ var createDiagnosticExecutor = fn("LSP.createCommentDirectivesProcessor")(
|
|
|
30284
30284
|
const diagnostics2 = [];
|
|
30285
30285
|
const codeFixes = [];
|
|
30286
30286
|
const ruleNameLowered = rule.name.toLowerCase();
|
|
30287
|
+
const defaultLevel = pluginOptions.diagnosticSeverity[ruleNameLowered] || rule.severity;
|
|
30287
30288
|
if (skippedRules.indexOf(ruleNameLowered) > -1) return { diagnostics: diagnostics2, codeFixes };
|
|
30289
|
+
if (defaultLevel === "off" && (lineOverrides[ruleNameLowered] || sectionOverrides[ruleNameLowered] || []).length === 0) {
|
|
30290
|
+
return { diagnostics: diagnostics2, codeFixes };
|
|
30291
|
+
}
|
|
30288
30292
|
const fixByDisableNextLine = (_) => ({
|
|
30289
30293
|
fixName: rule.name + "_skipNextLine",
|
|
30290
30294
|
description: "Disable " + rule.name + " for this line",
|
|
@@ -30325,7 +30329,7 @@ var createDiagnosticExecutor = fn("LSP.createCommentDirectivesProcessor")(
|
|
|
30325
30329
|
});
|
|
30326
30330
|
});
|
|
30327
30331
|
for (const emitted of applicableDiagnostics.slice(0)) {
|
|
30328
|
-
let newLevel =
|
|
30332
|
+
let newLevel = defaultLevel;
|
|
30329
30333
|
const lineOverride = (lineOverrides[ruleNameLowered] || []).find(
|
|
30330
30334
|
(_) => _.pos < emitted.node.getStart(sourceFile) && _.end >= emitted.node.getEnd()
|
|
30331
30335
|
);
|