File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/com/magento/idea/magento2plugin/inspections/php/fix Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
10
10
11
11
- Compatibility with PhpStorm/IntelliJ 2025.* [ #2495 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/2495 )
12
12
- "Copy Path/Reference" does not show the preview value [ #2497 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/2497 )
13
+ - Must not start write action from within read action in the other thread [ #2498 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/2498 )
13
14
14
15
## 2025.0.0
15
16
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 .application .ApplicationManager ;
10
11
import com .intellij .openapi .command .WriteCommandAction ;
11
12
import com .intellij .openapi .project .Project ;
12
13
import com .jetbrains .php .lang .psi .elements .StringLiteralExpression ;
@@ -38,7 +39,9 @@ public void applyFix(
38
39
) {
39
40
final StringLiteralExpression expression =
40
41
(StringLiteralExpression ) descriptor .getPsiElement ();
41
- applyFix (expression );
42
+ if (ApplicationManager .getApplication ().isDispatchThread ()) {
43
+ applyFix (expression );
44
+ }
42
45
}
43
46
44
47
private void applyFix (final StringLiteralExpression expression ) {
You can’t perform that action at this time.
0 commit comments