cleanup: replace with light service

GitOrigin-RevId: e90e50f7a97f8f239c07178c43e6ef4a9edc40bd
This commit is contained in:
Dmitry Batkovich
2023-12-04 16:24:34 +01:00
committed by intellij-monorepo-bot
parent 7fe31180b9
commit 5fa4f63edb
2 changed files with 2 additions and 2 deletions

View File

@@ -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"

View File

@@ -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>()