don't show "Kotlin not configured" notification for files outside a source root
This commit is contained in:
+4
@@ -69,6 +69,10 @@ class KotlinSetupEnvironmentNotificationProvider(
|
||||
}
|
||||
|
||||
val module = ModuleUtilCore.findModuleForPsiElement(psiFile) ?: return null
|
||||
if (!ModuleRootManager.getInstance(module).fileIndex.isInSourceContent(file)) {
|
||||
return null
|
||||
}
|
||||
|
||||
if (ModuleRootManager.getInstance(module).sdk == null) {
|
||||
return createSetupSdkPanel(myProject, psiFile)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user