@likec4/language-server 0.37.0 → 0.37.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/dist/model/model-builder.js +20 -0
- package/package.json +3 -3
|
@@ -76,6 +76,26 @@ function buildModel(docs) {
|
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
const views = R.pipe(R.flatMap(docs, d => d.c4Views), R.map(toElementView), R.compact, R.mapToObj(v => [v.id, v]));
|
|
79
|
+
// add index view if not present
|
|
80
|
+
if (!('index' in views)) {
|
|
81
|
+
views['index'] = {
|
|
82
|
+
id: 'index',
|
|
83
|
+
title: 'Landscape',
|
|
84
|
+
description: null,
|
|
85
|
+
tags: null,
|
|
86
|
+
links: null,
|
|
87
|
+
rules: [
|
|
88
|
+
{
|
|
89
|
+
isInclude: true,
|
|
90
|
+
exprs: [
|
|
91
|
+
{
|
|
92
|
+
wildcard: true
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
};
|
|
98
|
+
}
|
|
79
99
|
return {
|
|
80
100
|
elements,
|
|
81
101
|
relations,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/language-server",
|
|
3
3
|
"description": "LikeC4 Language Server",
|
|
4
|
-
"version": "0.37.
|
|
4
|
+
"version": "0.37.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
7
7
|
"homepage": "https://likec4.dev",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test:watch": "vitest"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@likec4/core": "0.37.
|
|
45
|
+
"@likec4/core": "0.37.1",
|
|
46
46
|
"langium": "^2.0.2",
|
|
47
47
|
"nanoid": "^4.0.2",
|
|
48
48
|
"object-hash": "^3.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"langium-cli": "^2.0.1",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
61
|
"typescript": "^5.2.2",
|
|
62
|
-
"vitest": "^0.34.
|
|
62
|
+
"vitest": "^0.34.4"
|
|
63
63
|
},
|
|
64
64
|
"packageManager": "yarn@3.6.3"
|
|
65
65
|
}
|