From 6bf04480a52cd385e69a9a9384dfdf2aadb1815b Mon Sep 17 00:00:00 2001 From: irengrig Date: Tue, 15 Nov 2016 21:35:06 +0100 Subject: [PATCH] Revert: test framework: intention action availability must be checked --- .../fixtures/impl/CodeInsightTestFixtureImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java index 6ca9ffafe7b1..cdeb1b6ba4b2 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java @@ -229,9 +229,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig List result = new ArrayList<>(); IntentionListStep intentionListStep = new IntentionListStep(null, intentions, editor, file, file.getProject()); for (Map.Entry> entry : intentionListStep.getActionsWithSubActions().entrySet()) { - final IntentionAction action = entry.getKey(); - if (action.isAvailable(file.getProject(), editor, file)) - result.add(action); + result.add(entry.getKey()); result.addAll(entry.getValue()); }