@likec4/language-server 1.38.0 → 1.38.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.
@@ -46,6 +46,7 @@ export interface LikeC4LanguageServices {
46
46
  }>;
47
47
  /**
48
48
  * Notifies the language server about changes in the workspace
49
+ * @deprecated use watcher instead
49
50
  */
50
51
  notifyUpdate(update: {
51
52
  changed?: string;
package/dist/Rpc.js CHANGED
@@ -65,8 +65,8 @@ export class Rpc extends ADisposable {
65
65
  connection.onRequest(FetchComputedModel.req, async ({ projectId, cleanCaches }, cancelToken) => {
66
66
  logger.debug`received request ${"fetchComputedModel"} for project ${projectId}`;
67
67
  if (cleanCaches) {
68
- const docs = projectId ? LangiumDocuments.projectDocuments(projectId) : LangiumDocuments.all;
69
- const uris = docs.map((d) => d.uri).toArray();
68
+ const docs = projectId ? LangiumDocuments.projectDocuments(projectId) : LangiumDocuments.allExcludingBuiltin;
69
+ const uris = docs.toArray().map((d) => d.uri);
70
70
  await DocumentBuilder.update(uris, [], cancelToken);
71
71
  }
72
72
  const likec4model = await modelBuilder.buildLikeC4Model(projectId, cancelToken);