ugly fix for failing tests. without the string template, KotlinFilePathReferenceContributor injects a file reference into the string literal, and an unrelated intention (AddAnnotationIntention) tries to resolve it. resolving the reference caches the default contexts in FIleReferenceSet, which caches the order entries of a module in an OrderRootsCache. this creates VirtualFilePointers which are for some reason not disposed properly.
This commit is contained in:
+1
-1
@@ -2,5 +2,5 @@
|
||||
fun foo(n: Int) {}
|
||||
|
||||
fun test() {
|
||||
foo("a<caret>bc")
|
||||
foo("a<caret>bc${1}")
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
fun foo(n: Int) {}
|
||||
|
||||
fun test() {
|
||||
foo("abc")
|
||||
foo("abc${1}")
|
||||
}
|
||||
|
||||
fun foo(n: String) {
|
||||
|
||||
Reference in New Issue
Block a user