From 29100f42bb44887fd25a283b93b9d47c94e36b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 24 Sep 2020 16:02:09 +0200 Subject: [PATCH] plugin_components.md: clarify "Project Open" --- basics/plugin_structure/plugin_components.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basics/plugin_structure/plugin_components.md b/basics/plugin_structure/plugin_components.md index fca44f8dc..4047c6c77 100644 --- a/basics/plugin_structure/plugin_components.md +++ b/basics/plugin_structure/plugin_components.md @@ -32,7 +32,10 @@ Executing code on application startup should be avoided whenever possible becaus ### Project Open -To execute code when a project is being opened, provide [StartupActivity](upsource:///platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java) implementation and register an [extension](plugin_extensions.md) for the `com.intellij.postStartupActivity` or `com.intellij.backgroundPostStartupActivity` extension point (the latter is supported starting with version 2019.3 of the platform). +To execute code when a project is being opened, use one of these two [extensions](plugin_extensions.md): + +- [StartupActivity](upsource:///platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java) registered via `com.intellij.postStartupActivity` for immediate execution +- [StartupActivity.Background](upsource:///platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java) registered via `com.intellij.backgroundPostStartupActivity` for execution with 5 seconds delay (2019.3 or later) ### Application/Project Close