mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
cleanup: replace with light service
GitOrigin-RevId: e90e50f7a97f8f239c07178c43e6ef4a9edc40bd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7fe31180b9
commit
5fa4f63edb
@@ -16,8 +16,6 @@
|
||||
serviceImplementation="com.intellij.configurationScript.inspection.ExternallyConfigurableProjectInspectionProfileManager"
|
||||
preload="notHeadless" overrides="true"/>
|
||||
|
||||
<projectService serviceImplementation="com.intellij.configurationScript.ConfigurationFileManager"/>
|
||||
|
||||
<runConfigurationTemplateProvider implementation="com.intellij.configurationScript.providers.MyRunConfigurationTemplateProvider"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.openapi.project.impl.ProjectStoreFactory"
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.intellij.configurationScript
|
||||
import com.intellij.ide.impl.isTrusted
|
||||
import com.intellij.ide.trustedProjects.TrustedProjectsListener
|
||||
import com.intellij.openapi.Disposable
|
||||
import com.intellij.openapi.components.Service
|
||||
import com.intellij.openapi.components.service
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
@@ -28,6 +29,7 @@ import java.nio.file.Paths
|
||||
|
||||
// we cannot use the same approach as we generate JSON scheme because we should load option classes only in a lazy manner
|
||||
// that's why we don't use snakeyaml TypeDescription approach to load
|
||||
@Service(Service.Level.PROJECT)
|
||||
internal class ConfigurationFileManager(project: Project): Disposable {
|
||||
private val clearableLazyValues = ContainerUtil.createConcurrentList<() -> Unit>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user