From c2f4b8380f304086763f4bee4508527ee61e3846 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Wed, 3 Jan 2024 11:24:40 +0100 Subject: [PATCH] plugin_components.md: Grammar fix --- topics/basics/plugin_structure/plugin_components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/basics/plugin_structure/plugin_components.md b/topics/basics/plugin_structure/plugin_components.md index 5508b51eb..7632dd73d 100644 --- a/topics/basics/plugin_structure/plugin_components.md +++ b/topics/basics/plugin_structure/plugin_components.md @@ -61,7 +61,7 @@ To execute code when a project is being opened, use one of these two [extensions Implement `DumbAware` to indicate activity can run in background thread (in parallel with other such tasks). `com.intellij.backgroundPostStartupActivity` -: [`StartupActivity.Background`](%gh-ic%/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.kt) for execution with 5 seconds delay in background thread (2019.3 or later). +: [`StartupActivity.Background`](%gh-ic%/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.kt) for execution with a 5-second 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).