diff --git a/topics/tutorials/code_inspections.md b/topics/tutorials/code_inspections.md index 386a5121f..aa74500ff 100644 --- a/topics/tutorials/code_inspections.md +++ b/topics/tutorials/code_inspections.md @@ -98,6 +98,15 @@ The change to the PSI tree is accomplished by the usual approach to modification * Substituting the original left and right operands into the new `PsiMethodCallExpression`. * Replacing the original binary expression with the `PsiMethodCallExpression`. +> In case of providing multiple quick fixes for a single element, their ordering is indeterministic due to performance reasons. +> It is possible to push specific items up or down by implementing +> [`HighPriorityAction`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/intention/HighPriorityAction.java) +> or +> [`LowPriorityAction`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/intention/LowPriorityAction.java) +> respectively. +> +{style="note"} + ### Inspection Description The inspection description is an HTML file. diff --git a/topics/tutorials/code_intentions.md b/topics/tutorials/code_intentions.md index 34aacc5ac..ea24bc3f8 100644 --- a/topics/tutorials/code_intentions.md +++ b/topics/tutorials/code_intentions.md @@ -1,7 +1,7 @@ -# Intentions - +# Intentions + Intention actions allowing to fix code issues or transform the code to a different form. @@ -33,6 +33,15 @@ The [conditional_operator_intention](%gh-sdk-samples%/conditional_operator_inten - How to invoke a quick fix action for a token element under cursor using the [`PsiElementBaseIntentionAction`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/intention/PsiElementBaseIntentionAction.java) class. - How to create a JUnit test for this plugin using the [`IdeaTestFixtureFactory`](%gh-ic%/platform/testFramework/src/com/intellij/testFramework/fixtures/IdeaTestFixtureFactory.java) class. +> In case of providing multiple intention actions for a single element, their ordering is indeterministic due to performance reasons. +> It is possible to push specific items up or down by implementing +> [`HighPriorityAction`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/intention/HighPriorityAction.java) +> or +> [`LowPriorityAction`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/intention/LowPriorityAction.java) +> respectively. +> +{style="note"} + ## Sample Plugin When launched, this plugin adds the Convert ternary operator if statement item to the Conditional Operator node in the Intentions List: