@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 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.$model };
56
+ return { model: likec4model.$data };
57
57
  }
58
58
  return { model: null };
59
59
  }), connection.onNotification(DidChangeSnapshotNotification.type, async ({ snapshotUri }) => {