File tree 3 files changed +3
-14
lines changed
src/com/magento/idea/magento2plugin/inspections
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).
9
9
### Fixed
10
10
11
11
- 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 )
12
13
13
14
## 5.1.0
14
15
Original file line number Diff line number Diff line change 7
7
8
8
import com .intellij .codeInspection .LocalQuickFix ;
9
9
import com .intellij .codeInspection .ProblemDescriptor ;
10
- import com .intellij .openapi .command .WriteCommandAction ;
11
10
import com .intellij .openapi .project .Project ;
12
11
import com .jetbrains .php .lang .psi .elements .StringLiteralExpression ;
13
12
import com .magento .idea .magento2plugin .bundles .InspectionBundle ;
@@ -42,11 +41,6 @@ public void applyFix(
42
41
}
43
42
44
43
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 );
51
45
}
52
46
}
Original file line number Diff line number Diff line change 7
7
8
8
import com .intellij .codeInspection .LocalQuickFix ;
9
9
import com .intellij .codeInspection .ProblemDescriptor ;
10
- import com .intellij .openapi .command .WriteCommandAction ;
11
10
import com .intellij .openapi .project .Project ;
12
11
import com .intellij .psi .xml .XmlAttribute ;
13
12
import com .intellij .psi .xml .XmlAttributeValue ;
@@ -42,12 +41,7 @@ public void applyFix(
42
41
}
43
42
44
43
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 );
51
45
}
52
46
53
47
protected void doFix (
You can’t perform that action at this time.
0 commit comments