fix -watch mode to not use stale cached files on subsequent runs

This commit is contained in:
Irmen de Jong committed 2026-05-20 22:54:52 +02:00
1 parent bddf872906
commit 61b616701e
2 files changed
+7 -3

No files matched your search

@@ -35,6 +35,11 @@ object ImportFileSystem {
}
}
fun clearCaches() {
cache.clear()
lineSpanCache.clear()
}
fun retrieveSourceLine(position: Position): String {
if(SourceCode.isLibraryResource(position.file)) {
val key = SourceCode.withoutPrefix(position.file)