Skip to content

Commit 4846776

Browse files
committed
don't show "Kotlin not configured" notification for files outside a source root
1 parent e9af4d2 commit 4846776

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

idea/src/org/jetbrains/kotlin/idea/configuration/KotlinSetupEnvironmentNotificationProvider.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ class KotlinSetupEnvironmentNotificationProvider(
6969
}
7070

7171
val module = ModuleUtilCore.findModuleForPsiElement(psiFile) ?: return null
72+
if (!ModuleRootManager.getInstance(module).fileIndex.isInSourceContent(file)) {
73+
return null
74+
}
75+
7276
if (ModuleRootManager.getInstance(module).sdk == null) {
7377
return createSetupSdkPanel(myProject, psiFile)
7478
}

0 commit comments

Comments
 (0)