@likec4/language-server 1.46.3 → 1.46.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/Rpc.js +2 -2
- package/dist/bundled.mjs +2375 -2310
- package/dist/generated/ast.js +2 -2
- package/dist/generated/grammar.js +1 -1
- package/dist/generated-lib/icons.js +7 -1
- package/dist/model/model-builder.js +6 -14
- package/dist/references/scope-provider.d.ts +1 -1
- package/dist/references/scope-provider.js +18 -21
- package/dist/workspace/IndexManager.js +4 -2
- package/dist/workspace/LangiumDocuments.js +15 -4
- package/dist/workspace/ProjectsManager.d.ts +5 -3
- package/dist/workspace/ProjectsManager.js +60 -26
- package/package.json +5 -5
- package/lib/package.json +0 -159
package/dist/Rpc.js
CHANGED
|
@@ -43,7 +43,7 @@ export class Rpc extends ADisposable {
|
|
|
43
43
|
});
|
|
44
44
|
let isFirstBuild = true;
|
|
45
45
|
this.onDispose(likec4Services.ModelBuilder.onModelParsed(() => notifyModelParsed.call(1)), connection.onRequest(FetchComputedModel.req, async ({ projectId, cleanCaches }, cancelToken) => {
|
|
46
|
-
logger.debug `received request ${'fetchComputedModel'} for project ${projectId}`;
|
|
46
|
+
logger.debug `received request ${'fetchComputedModel'} for project ${projectId} (cleanCaches: ${cleanCaches})`;
|
|
47
47
|
if (cleanCaches) {
|
|
48
48
|
const docs = projectId
|
|
49
49
|
? LangiumDocuments.projectDocuments(projectId)
|
|
@@ -53,7 +53,7 @@ export class Rpc extends ADisposable {
|
|
|
53
53
|
}
|
|
54
54
|
const likec4model = await likec4Services.ModelBuilder.computeModel(projectId, cancelToken);
|
|
55
55
|
if (likec4model !== LikeC4Model.EMPTY) {
|
|
56
|
-
return { model: likec4model.$
|
|
56
|
+
return { model: likec4model.$data };
|
|
57
57
|
}
|
|
58
58
|
return { model: null };
|
|
59
59
|
}), connection.onNotification(DidChangeSnapshotNotification.type, async ({ snapshotUri }) => {
|