@effect/language-service 0.59.0 → 0.61.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 +3 -1
- package/cli.js +20 -10
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +9 -3
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +558 -15
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +9 -3
- package/transform.js.map +1 -1
package/package.json
CHANGED
package/transform.js
CHANGED
|
@@ -1213,7 +1213,8 @@ var defaults = {
|
|
|
1213
1213
|
}],
|
|
1214
1214
|
extendedKeyDetection: false,
|
|
1215
1215
|
pipeableMinArgCount: 1,
|
|
1216
|
-
layerGraphFollowDepth: 0
|
|
1216
|
+
layerGraphFollowDepth: 0,
|
|
1217
|
+
mermaidProvider: "mermaid.live"
|
|
1217
1218
|
};
|
|
1218
1219
|
function parseKeyPatterns(patterns) {
|
|
1219
1220
|
const result = [];
|
|
@@ -1251,7 +1252,8 @@ function parse(config) {
|
|
|
1251
1252
|
keyPatterns: isObject(config) && hasProperty(config, "keyPatterns") && isArray(config.keyPatterns) ? parseKeyPatterns(config.keyPatterns) : defaults.keyPatterns,
|
|
1252
1253
|
extendedKeyDetection: isObject(config) && hasProperty(config, "extendedKeyDetection") && isBoolean(config.extendedKeyDetection) ? config.extendedKeyDetection : defaults.extendedKeyDetection,
|
|
1253
1254
|
pipeableMinArgCount: isObject(config) && hasProperty(config, "pipeableMinArgCount") && isNumber(config.pipeableMinArgCount) ? config.pipeableMinArgCount : defaults.pipeableMinArgCount,
|
|
1254
|
-
layerGraphFollowDepth: isObject(config) && hasProperty(config, "layerGraphFollowDepth") && isNumber(config.layerGraphFollowDepth) ? config.layerGraphFollowDepth : defaults.layerGraphFollowDepth
|
|
1255
|
+
layerGraphFollowDepth: isObject(config) && hasProperty(config, "layerGraphFollowDepth") && isNumber(config.layerGraphFollowDepth) ? config.layerGraphFollowDepth : defaults.layerGraphFollowDepth,
|
|
1256
|
+
mermaidProvider: isObject(config) && hasProperty(config, "mermaidProvider") && isString(config.mermaidProvider) ? config.mermaidProvider : defaults.mermaidProvider
|
|
1255
1257
|
};
|
|
1256
1258
|
}
|
|
1257
1259
|
|
|
@@ -2136,7 +2138,11 @@ var getEditsForCodegen = fn("LSP.getEditsForCodegen")(function* (codegens2, sour
|
|
|
2136
2138
|
service(ChangeTracker),
|
|
2137
2139
|
map4((changeTracker) => {
|
|
2138
2140
|
changeTracker.deleteRange(sourceFile, range);
|
|
2139
|
-
changeTracker.insertText(
|
|
2141
|
+
changeTracker.insertText(
|
|
2142
|
+
sourceFile,
|
|
2143
|
+
range.pos,
|
|
2144
|
+
edit.hash.length > 0 ? `${codegen.name}:${edit.hash}` : codegen.name
|
|
2145
|
+
);
|
|
2140
2146
|
})
|
|
2141
2147
|
);
|
|
2142
2148
|
return {
|