mirror of
https://github.com/irmen/prog8.git
synced 2026-10-24 18:02:40 +00:00
fix -watch mode to not use stale cached files on subsequent runs
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user