From 28b1e9856c0200a2344aa654ae89441d9aeae3a2 Mon Sep 17 00:00:00 2001 From: RodgeFu Date: Wed, 18 Sep 2024 11:00:42 +0800 Subject: [PATCH 1/2] fix cache notify method --- packages/compiler/src/server/file-system-cache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler/src/server/file-system-cache.ts b/packages/compiler/src/server/file-system-cache.ts index 92e5acd089..699459c583 100644 --- a/packages/compiler/src/server/file-system-cache.ts +++ b/packages/compiler/src/server/file-system-cache.ts @@ -72,8 +72,8 @@ export function createFileSystemCache({ entry.data = data; } }, - notify(changes: FileEvent[]) { - changes.push(...changes); + notify(events: FileEvent[]) { + changes.push(...events); }, }; } From 99e835c222fff91b791a7fb2f6f90e57c009329d Mon Sep 17 00:00:00 2001 From: RodgeFu Date: Wed, 18 Sep 2024 11:04:28 +0800 Subject: [PATCH 2/2] Add changelog for fix-server-file-cache --- .chronus/changes/fix-server-file-cache-2024-8-18-11-4-8.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chronus/changes/fix-server-file-cache-2024-8-18-11-4-8.md diff --git a/.chronus/changes/fix-server-file-cache-2024-8-18-11-4-8.md b/.chronus/changes/fix-server-file-cache-2024-8-18-11-4-8.md new file mode 100644 index 0000000000..d7ef43c29a --- /dev/null +++ b/.chronus/changes/fix-server-file-cache-2024-8-18-11-4-8.md @@ -0,0 +1,7 @@ +--- +changeKind: fix +packages: + - "@typespec/compiler" +--- + +Changing tspconfig.yaml won't take effect in LSP server because of the cache \ No newline at end of file