@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.
@@ -1212,7 +1212,8 @@ var defaults = {
1212
1212
  }],
1213
1213
  extendedKeyDetection: false,
1214
1214
  pipeableMinArgCount: 1,
1215
- layerGraphFollowDepth: 0
1215
+ layerGraphFollowDepth: 0,
1216
+ mermaidProvider: "mermaid.live"
1216
1217
  };
1217
1218
  function parseKeyPatterns(patterns) {
1218
1219
  const result = [];
@@ -1250,7 +1251,8 @@ function parse(config) {
1250
1251
  keyPatterns: isObject(config) && hasProperty(config, "keyPatterns") && isArray(config.keyPatterns) ? parseKeyPatterns(config.keyPatterns) : defaults.keyPatterns,
1251
1252
  extendedKeyDetection: isObject(config) && hasProperty(config, "extendedKeyDetection") && isBoolean(config.extendedKeyDetection) ? config.extendedKeyDetection : defaults.extendedKeyDetection,
1252
1253
  pipeableMinArgCount: isObject(config) && hasProperty(config, "pipeableMinArgCount") && isNumber(config.pipeableMinArgCount) ? config.pipeableMinArgCount : defaults.pipeableMinArgCount,
1253
- layerGraphFollowDepth: isObject(config) && hasProperty(config, "layerGraphFollowDepth") && isNumber(config.layerGraphFollowDepth) ? config.layerGraphFollowDepth : defaults.layerGraphFollowDepth
1254
+ layerGraphFollowDepth: isObject(config) && hasProperty(config, "layerGraphFollowDepth") && isNumber(config.layerGraphFollowDepth) ? config.layerGraphFollowDepth : defaults.layerGraphFollowDepth,
1255
+ mermaidProvider: isObject(config) && hasProperty(config, "mermaidProvider") && isString(config.mermaidProvider) ? config.mermaidProvider : defaults.mermaidProvider
1254
1256
  };
1255
1257
  }
1256
1258
 
@@ -2135,7 +2137,11 @@ var getEditsForCodegen = fn("LSP.getEditsForCodegen")(function* (codegens2, sour
2135
2137
  service(ChangeTracker),
2136
2138
  map4((changeTracker) => {
2137
2139
  changeTracker.deleteRange(sourceFile, range);
2138
- changeTracker.insertText(sourceFile, range.pos, `${codegen.name}:${edit.hash}`);
2140
+ changeTracker.insertText(
2141
+ sourceFile,
2142
+ range.pos,
2143
+ edit.hash.length > 0 ? `${codegen.name}:${edit.hash}` : codegen.name
2144
+ );
2139
2145
  })
2140
2146
  );
2141
2147
  return {