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 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); }, }; }