Skip to content

Commit 363db83

Browse files
authored
Merge pull request #138 from shuzijun/gradle
Fix python commit area error
2 parents 51f6a4a + 023cd4a commit 363db83

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/main/java/com/shuzijun/leetcode/plugin/utils/FileUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ public Boolean compute() throws Throwable {
123123

124124
String[] lines = body.split("\r\n|\r|\n");
125125
for (String line : lines) {
126-
if (StringUtils.isNotBlank(line) && trim(line).equals(codeTypeEnum.getComment() + trim(Constant.SUBMIT_REGION_BEGIN))) {
126+
if (StringUtils.isNotBlank(line) && trim(line).equals(trim(codeTypeEnum.getComment() + Constant.SUBMIT_REGION_BEGIN))) {
127127
codeBegin = lineCount;
128-
} else if (StringUtils.isNotBlank(line) && trim(line).equals(codeTypeEnum.getComment() + trim(Constant.SUBMIT_REGION_END))) {
128+
} else if (StringUtils.isNotBlank(line) && trim(line).equals(trim(codeTypeEnum.getComment() + Constant.SUBMIT_REGION_END))) {
129129
codeEnd = lineCount;
130130
}
131131
codeList.add(line);

src/main/resources/META-INF/plugin.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -468,41 +468,41 @@
468468
text="leetcode editor menu" popup="true" icon="/image/LeetCodeIcon.png">
469469

470470
<action id="leetcode.editor.RunCodeAction" class="com.shuzijun.leetcode.plugin.actions.editor.RunCodeAction"
471-
text="Run Code" description="Run Code" icon="AllIcons.Actions.Execute">
471+
text="Run Code" description="Run Code(editor)" icon="AllIcons.Actions.Execute">
472472
</action>
473473
<action id="leetcode.editor.TestcaseAction"
474474
class="com.shuzijun.leetcode.plugin.actions.editor.TestcaseAction"
475-
text="Testcase" description="Test case" icon="AllIcons.Actions.Edit">
475+
text="Testcase" description="Test case(editor)" icon="AllIcons.Actions.Edit">
476476
</action>
477477
<separator/>
478478
<action id="leetcode.editor.SubmitAction" class="com.shuzijun.leetcode.plugin.actions.editor.SubmitAction"
479-
text="Submit" description="Submit" icon="AllIcons.Actions.StepOut">
479+
text="Submit" description="Submit(editor)" icon="AllIcons.Actions.StepOut">
480480
</action>
481481
<action id="leetcode.editor.SubmissionsAction"
482482
class="com.shuzijun.leetcode.plugin.actions.editor.SubmissionsAction"
483-
text="Submissions" description="Submissions" icon="AllIcons.Actions.ShowHiddens">
483+
text="Submissions" description="Submissions(editor)" icon="AllIcons.Actions.ShowHiddens">
484484
</action>
485485
<separator/>
486486
<action id="leetcode.editor.OpenContentAction"
487487
class="com.shuzijun.leetcode.plugin.actions.editor.OpenContentAction"
488-
text="open content" description="open content" icon="AllIcons.FileTypes.UiForm">
488+
text="open content" description="open content(editor)" icon="AllIcons.FileTypes.UiForm">
489489
</action>
490490

491491
<action id="leetcode.editor.OpenInWebAction"
492492
class="com.shuzijun.leetcode.plugin.actions.editor.OpenInWebAction"
493-
text="open in web" description="open in web" icon="AllIcons.Actions.MoveTo2">
493+
text="open in web" description="open in web(editor)" icon="AllIcons.Actions.MoveTo2">
494494
</action>
495495
<separator/>
496-
<group id="leetcode.editor.timer" popup="true" text="Timer" description="timer" icon="AllIcons.Vcs.History">
496+
<group id="leetcode.editor.timer" popup="true" text="Timer" description="timer(editor)" icon="AllIcons.Vcs.History">
497497
<action id="leetcode.editor.StartTimeAction"
498498
class="com.shuzijun.leetcode.plugin.actions.editor.StartTimeAction"
499-
text="Start" description="Start Time">
499+
text="Start" description="Start Time(editor)">
500500
</action>
501501
<action id="leetcode.editor.StopTimeAction" class="com.shuzijun.leetcode.plugin.actions.editor.StopTimeAction"
502-
text="Stop" description="Stop Time">
502+
text="Stop" description="Stop Time(editor)">
503503
</action>
504504
<action id="leetcode.editor.ResetTimeAction" class="com.shuzijun.leetcode.plugin.actions.editor.ResetTimeAction"
505-
text="Reset" description="Reset Time">
505+
text="Reset" description="Reset Time(editor)">
506506
</action>
507507
</group>
508508
<add-to-group group-id="EditorPopupMenu" anchor="first"/>

0 commit comments

Comments
 (0)