mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
committed by
intellij-monorepo-bot
parent
97705d4dae
commit
53cf693754
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user