KT-33372 Remove renaming file reference to the contents of the file

- There is still a hack with returning null from `getLastFileReference`,
it is here to keep KT-25674 issue fixed
- Overrides of `bindToElement` are removed, they caused renames of the
file references to their contents
- Code of `KotlinFilePathReferenceContributor.kt` is refactored
- ^KT-33372 ^KT-32514 ^KT-36306 Fixed
This commit is contained in:
Roman Golyshev
2020-02-14 11:48:14 +03:00
committed by Roman Golyshev
parent 50c477bee1
commit 3461effd47
19 changed files with 86 additions and 31 deletions
@@ -143,6 +143,11 @@ public class PerformanceBasicCompletionHandlerTestGenerated extends AbstractPerf
runTest("idea/idea-completion/testData/handlers/basic/KT23627.kt");
}
@TestMetadata("KT36306.kt")
public void testKT36306() throws Exception {
runTest("idea/idea-completion/testData/handlers/basic/KT36306.kt");
}
@TestMetadata("NestedTypeArg.kt")
public void testNestedTypeArg() throws Exception {
runTest("idea/idea-completion/testData/handlers/basic/NestedTypeArg.kt");