File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/main/java/com/magento/idea/magento2plugin
actions/generation/generator/util Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ junit = "4.13.2"
4
4
5
5
# plugins
6
6
changelog = " 2.2.1"
7
- intelliJPlatform = " 2.6 .0"
7
+ intelliJPlatform = " 2.7 .0"
8
8
kotlin = " 2.1.0"
9
9
kover = " 0.8.3"
10
10
qodana = " 2024.2.3"
Original file line number Diff line number Diff line change 20
20
import com .intellij .psi .codeStyle .CodeStyleManager ;
21
21
import com .intellij .util .IncorrectOperationException ;
22
22
import com .magento .idea .magento2plugin .magento .files .ModuleFileInterface ;
23
+ import com .magento .idea .magento2plugin .magento .files .ModuleReadmeMdFile ;
23
24
import com .magento .idea .magento2plugin .magento .packages .File ;
24
25
import java .io .IOException ;
25
26
import java .util .List ;
@@ -161,7 +162,7 @@ public PsiFile createFileFromTemplate(
161
162
false
162
163
);
163
164
164
- if (fileTemplate .isReformatCode ()) {
165
+ if (fileTemplate .isReformatCode () && ! fileName . endsWith ( ModuleReadmeMdFile . EXTENSION ) ) {
165
166
CodeStyleManager .getInstance (project ).reformat (file );
166
167
}
167
168
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ public class ModuleReadmeMdFile implements ModuleFileInterface {
12
12
13
13
public static final String FILE_NAME = "README.md" ;
14
14
public static final String TEMPLATE = "Magento Module Readme File MD" ;
15
+ public static final String EXTENSION = ".md" ;
15
16
16
17
@ Override
17
18
public String getFileName () {
You can’t perform that action at this time.
0 commit comments