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 foo(n: Int) {}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
foo("a<caret>bc")
|
foo("a<caret>bc${1}")
|
||||||
}
|
}
|
||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
fun foo(n: Int) {}
|
fun foo(n: Int) {}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
foo("abc")
|
foo("abc${1}")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun foo(n: String) {
|
fun foo(n: String) {
|
||||||
|
|||||||
+1
-1
@@ -3,5 +3,5 @@
|
|||||||
class Foo(val n: Int)
|
class Foo(val n: Int)
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val foo = Foo("a<caret>bc")
|
val foo = Foo("a<caret>bc${1}")
|
||||||
}
|
}
|
||||||
Vendored
+1
-1
@@ -5,5 +5,5 @@ class Foo(val n: Int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val foo = Foo("abc")
|
val foo = Foo("abc${1}")
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user