RUBY-27895 removed trusted project customization for learning plugin

For now no one can imagine such case, also for new project wizard same logic is unconditional

IJ-CR-7422

GitOrigin-RevId: aaab02b1620ff740d298a4da4a9dd1693557e3ea
This commit is contained in:
Alexandr Evstigneev
2021-03-22 12:06:46 +00:00
committed by intellij-monorepo-bot
parent 97705d4dae
commit 53cf693754
2 changed files with 1 additions and 9 deletions
@@ -39,12 +39,6 @@ interface LangSupport {
fun copyLearningProjectFiles(projectDirectory: File, destinationFilter: FileFilter? = null): Boolean
/**
* @return true iff newly created project should be marked as trusted after creation. Otherwise project will have UNSURE status.
* @see com.intellij.ide.impl.TrustedProjectSettings
*/
fun isTrusted(project: Project): Boolean = true
/**
* Implement that method to define SDK lookup depending on a given project.
*
@@ -126,9 +126,7 @@ object ProjectUtils {
val project = ProjectUtil.openOrImport(projectDirectoryVirtualFile.toNioPath(), task)
?: error("Could not create project for ${langSupport.primaryLanguage}")
PropertiesComponent.getInstance(project).setValue(LEARNING_PROJECT_MODIFICATION, System.currentTimeMillis().toString())
if (langSupport.isTrusted(project)) {
project.setTrusted(true)
}
project.setTrusted(true)
postInitCallback(project)
}
}