File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
src/com/magento/idea/magento2plugin/inspections Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
99### Fixed
1010
1111- java.lang.NoClassDefFoundError: org/codehaus/plexus/util/StringUtils [ #1530 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/1530 )
12+ - java.lang.Throwable: Must not start write action from within read action in the other thread - deadlock is coming [ #1531 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/1531 )
1213
1314## 5.1.0
1415
Original file line number Diff line number Diff line change 77
88import com .intellij .codeInspection .LocalQuickFix ;
99import com .intellij .codeInspection .ProblemDescriptor ;
10- import com .intellij .openapi .command .WriteCommandAction ;
1110import com .intellij .openapi .project .Project ;
1211import com .jetbrains .php .lang .psi .elements .StringLiteralExpression ;
1312import com .magento .idea .magento2plugin .bundles .InspectionBundle ;
@@ -42,11 +41,6 @@ public void applyFix(
4241 }
4342
4443 private void applyFix (final StringLiteralExpression expression ) {
45- WriteCommandAction .writeCommandAction (
46- expression .getManager ().getProject (),
47- expression .getContainingFile ()
48- ).run (() ->
49- expression .updateText (expectedModuleName )
50- );
44+ expression .updateText (expectedModuleName );
5145 }
5246}
Original file line number Diff line number Diff line change 77
88import com .intellij .codeInspection .LocalQuickFix ;
99import com .intellij .codeInspection .ProblemDescriptor ;
10- import com .intellij .openapi .command .WriteCommandAction ;
1110import com .intellij .openapi .project .Project ;
1211import com .intellij .psi .xml .XmlAttribute ;
1312import com .intellij .psi .xml .XmlAttributeValue ;
@@ -42,12 +41,7 @@ public void applyFix(
4241 }
4342
4443 private void applyFix (final XmlAttributeValue value ) {
45- WriteCommandAction .writeCommandAction (
46- value .getManager ().getProject (),
47- value .getContainingFile ()
48- ).run (() ->
49- doFix (value )
50- );
44+ doFix (value );
5145 }
5246
5347 protected void doFix (
You can’t perform that action at this time.
0 commit comments