aboutsummaryrefslogtreecommitdiff
path: root/src/server/documents.odin
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-03-10 15:16:58 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-03-10 15:16:58 +0100
commit968e428c217e963b82e3c8fd39b9a9721e00f7d6 (patch)
tree83c80c6d669b448c482570479d2fe721ddc34f1a /src/server/documents.odin
parent9f1e92e8316ff0db92a3e72d0a21d1e7311171f3 (diff)
Use murmur hash and bucket a map in each package.
Diffstat (limited to 'src/server/documents.odin')
-rw-r--r--src/server/documents.odin2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/documents.odin b/src/server/documents.odin
index 9c70035..3ac8cdc 100644
--- a/src/server/documents.odin
+++ b/src/server/documents.odin
@@ -323,6 +323,8 @@ parse_document :: proc(document: ^common.Document, config: ^common.Config) -> ([
free_all(common.scratch_allocator(document.allocator))
+ delete_key(&file_resolve_cache.files, document.uri.uri)
+
context.allocator = common.scratch_allocator(document.allocator)
//have to cheat the parser since it really wants to parse an entire package with the new changes...