From 35d95bfd46d7b6dbde124fbc099e69154e636f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Wed, 13 Oct 2021 17:08:18 +0200 Subject: [PATCH] plugin_components.md: do not use deflist --- topics/basics/plugin_structure/plugin_components.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/topics/basics/plugin_structure/plugin_components.md b/topics/basics/plugin_structure/plugin_components.md index 06f0ec28f..73d77223e 100644 --- a/topics/basics/plugin_structure/plugin_components.md +++ b/topics/basics/plugin_structure/plugin_components.md @@ -40,11 +40,11 @@ To execute an activity in background on IDE startup (e.g., to warm up caches), u To execute code when a project is being opened, use one of these two [extensions](plugin_extensions.md): -`com.intellij.postStartupActivity` -: [`StartupActivity`](upsource:///platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java) for immediate execution on EDT. Implement `DumbAware` to indicate activity can run in background thread (in parallel with other such tasks). +#### `com.intellij.postStartupActivity` +[`StartupActivity`](upsource:///platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java) for immediate execution on EDT. Implement `DumbAware` to indicate activity can run in background thread (in parallel with other such tasks). -`com.intellij.backgroundPostStartupActivity` -: [`StartupActivity.Background`](upsource:///platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java) for execution with 5 seconds delay in background thread (2019.3 or later). +#### `com.intellij.backgroundPostStartupActivity` +[`StartupActivity.Background`](upsource:///platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java) for execution with 5 seconds delay in background thread (2019.3 or later). Any long-running or CPU intensive tasks should be made visible to users by using `ProgressManager.run(Task.Backgroundable)`. Access to indices must be wrapped with `DumbService`, see also [General Threading Rules](general_threading_rules.md).