PY-75554: Open logical structure tab when requested

GitOrigin-RevId: 3a132e0dd89810cddad46a2680421b9c991d00e9
This commit is contained in:
Ilia Zakoulov
2025-06-24 13:00:54 +00:00
committed by intellij-monorepo-bot
parent e2e93d8dae
commit 5535d780da
@@ -5,10 +5,12 @@ import com.intellij.openapi.components.*
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManager
import com.intellij.util.xmlb.XmlSerializerUtil
import org.jetbrains.annotations.ApiStatus
@Service(Service.Level.PROJECT)
@State(name = "StructureViewState", storages = [(Storage(value = StoragePathMacros.WORKSPACE_FILE))])
internal class StructureViewState : PersistentStateComponent<StructureViewState> {
@ApiStatus.Internal
class StructureViewState : PersistentStateComponent<StructureViewState> {
companion object {
@JvmStatic
fun getInstance(project: Project): StructureViewState = project.service()