Skip to content

Commit

Permalink
Fix the cleanup of file cache in server (#4467)
Browse files Browse the repository at this point in the history
Fix #4278 , without the cleanup, editing tspconfig.yaml won't take
effect in LSP server
  • Loading branch information
RodgeFu committed Sep 18, 2024
1 parent 2d183a7 commit 2b0cfe1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/fix-server-file-cache-2024-8-18-11-4-8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@typespec/compiler"
---

Changing tspconfig.yaml won't take effect in LSP server because of the cache
4 changes: 2 additions & 2 deletions packages/compiler/src/server/file-system-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export function createFileSystemCache({
entry.data = data;
}
},
notify(changes: FileEvent[]) {
changes.push(...changes);
notify(events: FileEvent[]) {
changes.push(...events);
},
};
}

0 comments on commit 2b0cfe1

Please sign in to comment.