diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-28 19:40:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-28 19:40:42 -0400 |
| commit | a689caf142d46823064ae58e7a1702644de914bc (patch) | |
| tree | 3d76e62bae80a45d5805f585777362d423fc9147 /src/server | |
| parent | 62cae61b822416979ff25b3672feb3679c93eebc (diff) | |
| parent | 093ed7d598f176816c0a463f6d6742849869e8be (diff) | |
Merge pull request #794 from BradLewis/fix/flaky-tests
Make `file_resolve_cache` and `build_cache` thread_local to stop isses with tests
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/caches.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/caches.odin b/src/server/caches.odin index 7e87762..f1cdc2e 100644 --- a/src/server/caches.odin +++ b/src/server/caches.odin @@ -22,6 +22,7 @@ FileResolveCache :: struct { files: map[string]FileResolve, } +@(thread_local) file_resolve_cache: FileResolveCache resolve_entire_file_cached :: proc(document: ^Document) -> map[uintptr]SymbolAndNode { @@ -43,6 +44,7 @@ PackageCacheInfo :: struct { timestamp: time.Time, } +@(thread_local) build_cache: BuildCache |