@abco20/btxml-checker 0.1.3 → 0.1.4
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/dist/cli.js +27 -27
- package/dist/editor-node.js +21 -21
- package/dist/server.cjs +8 -5
- package/dist/server.cjs.map +1 -1
- package/package.json +1 -1
package/dist/server.cjs
CHANGED
|
@@ -39223,6 +39223,9 @@ function resolveConventionSeverity(config2, rule) {
|
|
|
39223
39223
|
function definitionRange(definition) {
|
|
39224
39224
|
return definition.model.idRange ?? definition.range;
|
|
39225
39225
|
}
|
|
39226
|
+
function definitionDeleteRange(definition) {
|
|
39227
|
+
return definition.range;
|
|
39228
|
+
}
|
|
39226
39229
|
function definitionInfo(definition) {
|
|
39227
39230
|
return {
|
|
39228
39231
|
uri: definition.uri,
|
|
@@ -39299,10 +39302,10 @@ function validateUsedOnly(input) {
|
|
|
39299
39302
|
nodeId: definition.id,
|
|
39300
39303
|
modelKind: definition.kind,
|
|
39301
39304
|
sourceKind: "inline-tree-nodes-model",
|
|
39302
|
-
fix: definition.uri &&
|
|
39305
|
+
fix: definition.uri && definitionDeleteRange(definition) && definition.editable ? {
|
|
39303
39306
|
kind: "delete-definition",
|
|
39304
39307
|
uri: definition.uri,
|
|
39305
|
-
range:
|
|
39308
|
+
range: definitionDeleteRange(definition)
|
|
39306
39309
|
} : void 0
|
|
39307
39310
|
}
|
|
39308
39311
|
})
|
|
@@ -39317,7 +39320,7 @@ function duplicateFix(definitions) {
|
|
|
39317
39320
|
if (!keep?.uri) return void 0;
|
|
39318
39321
|
const deleteTargets = definitions.filter((definition) => definition !== keep);
|
|
39319
39322
|
if (deleteTargets.some(
|
|
39320
|
-
(definition) => !definition.uri || !
|
|
39323
|
+
(definition) => !definition.uri || !definitionDeleteRange(definition) || !definition.editable
|
|
39321
39324
|
)) {
|
|
39322
39325
|
return void 0;
|
|
39323
39326
|
}
|
|
@@ -39329,7 +39332,7 @@ function duplicateFix(definitions) {
|
|
|
39329
39332
|
},
|
|
39330
39333
|
delete: deleteTargets.map((definition) => ({
|
|
39331
39334
|
uri: definition.uri,
|
|
39332
|
-
range:
|
|
39335
|
+
range: definitionDeleteRange(definition)
|
|
39333
39336
|
}))
|
|
39334
39337
|
};
|
|
39335
39338
|
}
|
|
@@ -46852,7 +46855,7 @@ function handleGetChildCapability(workspace, params) {
|
|
|
46852
46855
|
}
|
|
46853
46856
|
|
|
46854
46857
|
// src/server.ts
|
|
46855
|
-
var SERVER_VERSION = true ? "0.1.
|
|
46858
|
+
var SERVER_VERSION = true ? "0.1.4" : "unknown";
|
|
46856
46859
|
var connection = (0, import_node4.createConnection)(import_node4.ProposedFeatures.all);
|
|
46857
46860
|
var documents = new import_node4.TextDocuments(TextDocument);
|
|
46858
46861
|
var openUris = /* @__PURE__ */ new Set();
|