@likec4/language-server 1.16.0 → 1.17.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/dist/browser.cjs +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.mts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.mjs +2 -2
- package/dist/index.cjs +35 -5
- package/dist/index.d.cts +17 -4
- package/dist/index.d.mts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.mjs +34 -5
- package/dist/model-graph/index.cjs +1 -1
- package/dist/model-graph/index.mjs +1 -1
- package/dist/shared/{language-server.D_13fWJQ.mjs → language-server.B8qSDsWW.mjs} +36 -14
- package/dist/shared/{language-server.DViE1Zxi.d.mts → language-server.BGGRJRnr.d.mts} +1 -1
- package/dist/shared/{language-server.C5gxpVUH.mjs → language-server.BXFhlTPo.mjs} +15 -3
- package/dist/shared/{language-server.DIaiY0-C.d.mts → language-server.BgDKnNok.d.mts} +1 -1
- package/dist/shared/{language-server.7iILaJYc.d.ts → language-server.Bmpq16Gw.d.ts} +1 -1
- package/dist/shared/{language-server.CmBZHwSl.d.cts → language-server.C1ZfM22X.d.cts} +1 -1
- package/dist/shared/{language-server.CnkCWVtf.d.cts → language-server.DJo88TnT.d.cts} +1 -1
- package/dist/shared/{language-server.Dym6GL4P.cjs → language-server.DZRuJVSg.cjs} +36 -14
- package/dist/shared/{language-server.Bd3NZ8uH.cjs → language-server.N8HLDQqz.cjs} +14 -2
- package/dist/shared/{language-server.DwyQ1FtY.d.ts → language-server.PEjk7U9s.d.ts} +1 -1
- package/package.json +7 -7
- package/src/LikeC4FileSystem.ts +36 -0
- package/src/Rpc.ts +2 -2
- package/src/generated/ast.ts +1 -1
- package/src/generated/grammar.ts +1 -1
- package/src/index.ts +3 -3
- package/src/like-c4.langium +1 -1
- package/src/lsp/SemanticTokenProvider.ts +26 -8
- package/src/model/fqn-computation.ts +6 -2
- package/src/model-graph/compute-view/__test__/fixture.ts +6 -0
- package/src/model-graph/compute-view/compute.ts +9 -2
- package/src/model-graph/dynamic-view/compute.ts +8 -1
- package/src/model-graph/utils/applyCustomElementProperties.ts +1 -3
|
@@ -423,7 +423,7 @@ interface IconProperty extends AstNode {
|
|
|
423
423
|
readonly $type: 'IconProperty';
|
|
424
424
|
key: 'icon';
|
|
425
425
|
libicon?: Reference<LibIcon>;
|
|
426
|
-
value?: Uri;
|
|
426
|
+
value?: 'none' | Uri;
|
|
427
427
|
}
|
|
428
428
|
declare const IconProperty = "IconProperty";
|
|
429
429
|
interface IncludePredicate extends AstNode {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isViewRuleGlobalPredicateRef, isViewRuleGlobalStyle, Expr, whereOperatorAsPredicate, parentFqn, nonexhaustive, ComputedNode, isViewRuleGroup, isViewRulePredicate, isViewRuleStyle, nonNullable, ElementKind, compareByFqnHierarchically, DefaultThemeColor, DefaultElementShape, compareRelations, invariant, compareNatural, hasAtLeast, isAncestor, isScopedElementView, isViewRuleAutoLayout, commonAncestor, commonHead, StepEdgeId, isDynamicViewParallelSteps, isDynamicViewIncludeRule, DefaultRelationshipColor, DefaultLineStyle, DefaultArrowType, ancestorsFqn, isSameHierarchy } from '@likec4/core';
|
|
2
|
-
import { isNullish, pipe, map, pick, mapToObj, isTruthy, omitBy, isEmpty, filter, isNot, anyPass, forEach, isDefined, groupBy, prop, mapValues, piped, unique, entries, flatMap, sortBy, sort, tap, difference, allPass, concat,
|
|
2
|
+
import { isNullish, pipe, map, pick, mapToObj, isTruthy, omitBy, isEmpty, filter, isNot, anyPass, forEach, isDefined, groupBy, prop, mapValues, piped, unique, entries, flatMap, sortBy, sort, tap, difference, allPass, concat, hasAtLeast as hasAtLeast$1, only, reduce, last, reverse, isNonNull, first, isString, isArray } from 'remeda';
|
|
3
3
|
import dagre from '@dagrejs/dagre';
|
|
4
4
|
import { logger } from '@likec4/log';
|
|
5
5
|
import objectHash from 'object-hash';
|
|
@@ -1041,7 +1041,13 @@ class ComputeCtx {
|
|
|
1041
1041
|
...autoLayoutRule?.nodeSep && { nodeSep: autoLayoutRule.nodeSep },
|
|
1042
1042
|
...autoLayoutRule?.rankSep && { rankSep: autoLayoutRule.rankSep }
|
|
1043
1043
|
},
|
|
1044
|
-
nodes: map(nodes,
|
|
1044
|
+
nodes: map(nodes, (n) => {
|
|
1045
|
+
delete n.notation;
|
|
1046
|
+
if (n.icon === "none") {
|
|
1047
|
+
delete n.icon;
|
|
1048
|
+
}
|
|
1049
|
+
return n;
|
|
1050
|
+
}),
|
|
1045
1051
|
edges: applyCustomRelationProperties(rules, nodes, sortedEdges),
|
|
1046
1052
|
...elementNotations.length > 0 && {
|
|
1047
1053
|
notation: {
|
|
@@ -1611,7 +1617,13 @@ class DynamicViewComputeCtx {
|
|
|
1611
1617
|
...autoLayoutRule?.nodeSep && { nodeSep: autoLayoutRule.nodeSep },
|
|
1612
1618
|
...autoLayoutRule?.rankSep && { rankSep: autoLayoutRule.rankSep }
|
|
1613
1619
|
},
|
|
1614
|
-
nodes: map(nodes,
|
|
1620
|
+
nodes: map(nodes, (n) => {
|
|
1621
|
+
delete n.notation;
|
|
1622
|
+
if (n.icon === "none") {
|
|
1623
|
+
delete n.icon;
|
|
1624
|
+
}
|
|
1625
|
+
return n;
|
|
1626
|
+
}),
|
|
1615
1627
|
edges,
|
|
1616
1628
|
...elementNotations.length > 0 && {
|
|
1617
1629
|
notation: {
|
|
@@ -423,7 +423,7 @@ interface IconProperty extends AstNode {
|
|
|
423
423
|
readonly $type: 'IconProperty';
|
|
424
424
|
key: 'icon';
|
|
425
425
|
libicon?: Reference<LibIcon>;
|
|
426
|
-
value?: Uri;
|
|
426
|
+
value?: 'none' | Uri;
|
|
427
427
|
}
|
|
428
428
|
declare const IconProperty = "IconProperty";
|
|
429
429
|
interface IncludePredicate extends AstNode {
|
|
@@ -423,7 +423,7 @@ interface IconProperty extends AstNode {
|
|
|
423
423
|
readonly $type: 'IconProperty';
|
|
424
424
|
key: 'icon';
|
|
425
425
|
libicon?: Reference<LibIcon>;
|
|
426
|
-
value?: Uri;
|
|
426
|
+
value?: 'none' | Uri;
|
|
427
427
|
}
|
|
428
428
|
declare const IconProperty = "IconProperty";
|
|
429
429
|
interface IncludePredicate extends AstNode {
|
|
@@ -423,7 +423,7 @@ interface IconProperty extends AstNode {
|
|
|
423
423
|
readonly $type: 'IconProperty';
|
|
424
424
|
key: 'icon';
|
|
425
425
|
libicon?: Reference<LibIcon>;
|
|
426
|
-
value?: Uri;
|
|
426
|
+
value?: 'none' | Uri;
|
|
427
427
|
}
|
|
428
428
|
declare const IconProperty = "IconProperty";
|
|
429
429
|
interface IncludePredicate extends AstNode {
|
|
@@ -423,7 +423,7 @@ interface IconProperty extends AstNode {
|
|
|
423
423
|
readonly $type: 'IconProperty';
|
|
424
424
|
key: 'icon';
|
|
425
425
|
libicon?: Reference<LibIcon>;
|
|
426
|
-
value?: Uri;
|
|
426
|
+
value?: 'none' | Uri;
|
|
427
427
|
}
|
|
428
428
|
declare const IconProperty = "IconProperty";
|
|
429
429
|
interface IncludePredicate extends AstNode {
|