From ea091bb25dd0fc40a0b3e48b30ced56ae3378f77 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 13 Mar 2025 14:51:33 +0100 Subject: [PATCH] code_inspections_and_intentions.md: Clarify how inspections and intentions are run --- .../custom_language_support/code_inspections_and_intentions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md b/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md index ac526038c..43a762efe 100644 --- a/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md +++ b/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md @@ -14,7 +14,9 @@ Code inspections analyze code for potential issues, such as errors, inefficiencies, or code smells. Code intentions suggest improvements and refactorings to enhance readability and maintainability. + While inspections focus on detecting problems, intentions provide optional enhancements to improve code structure. +Inspections are run on a full PSI tree and report found problems, while intention actions are run only on elements under the cursor. ## Inspections