From d4c98ec18cf0216fda552bc30d2d519e3002d25a Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 20 Jan 2014 16:43:18 +0400 Subject: [PATCH] Prevent annoying tooltip in Kotlin project Module 'builtins' has no dependency on kotlin-runtime.jar, yet it has a lot of Kotlin files. Add jet.Unit to the list of marker classes as an example of the class not from the stdlib, but from built-ins. Since 'builtins' has jet.Unit in its classpath, no tooltip is displayed --- .../jetbrains/jet/plugin/versions/KotlinRuntimeLibraryUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/versions/KotlinRuntimeLibraryUtil.java b/idea/src/org/jetbrains/jet/plugin/versions/KotlinRuntimeLibraryUtil.java index 68a787da410..0a6f67ad112 100644 --- a/idea/src/org/jetbrains/jet/plugin/versions/KotlinRuntimeLibraryUtil.java +++ b/idea/src/org/jetbrains/jet/plugin/versions/KotlinRuntimeLibraryUtil.java @@ -156,6 +156,8 @@ public class KotlinRuntimeLibraryUtil { ImmutableList candidateClassNames = ImmutableList.of( kotlinPackageClassFqName, + // For built-ins module in Kotlin project + "jet.Unit", // For older versions "kotlin.namespace", // For really old versions