From 04bead58f6157325cb2eafbe1dbb93f2836f6b31 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Wed, 12 Mar 2025 09:49:34 +0100 Subject: [PATCH] persisting_state_of_components.md: Link storage location section --- topics/basics/persisting_state_of_components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/basics/persisting_state_of_components.md b/topics/basics/persisting_state_of_components.md index b7ddf18b8..c72b11246 100644 --- a/topics/basics/persisting_state_of_components.md +++ b/topics/basics/persisting_state_of_components.md @@ -20,7 +20,7 @@ The [`PersistentStateComponent`](%gh-ic%/platform/projectModel-api/src/com/intel To use it: - mark a [service](plugin_services.md) (project or application-level service for storing project or application data, respectively) as implementing the `PersistentStateComponent` interface - define the state class -- specify the storage location using [`@State`](%gh-ic%/platform/projectModel-api/src/com/intellij/openapi/components/State.java) +- specify the [storage location](#defining-the-storage-location) using [`@State`](%gh-ic%/platform/projectModel-api/src/com/intellij/openapi/components/State.java) Note that instances of extensions can't persist their state by implementing `PersistentStateComponent`. If an extension needs to have a persistent state, define a separate service responsible for managing that state.