Skip to content

Commit

Permalink
Add actions to EditorTabPopupMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyennk92 committed Jan 15, 2020
1 parent cd1bb3e commit f219ec8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'com.nguyennk'
version '1.0.1'
version '1.0.2'

sourceCompatibility = 1.8

Expand Down Expand Up @@ -33,6 +33,6 @@ compileTestKotlin {
}
patchPluginXml {
changeNotes """
Fix duplication in unit test files (.spec.ts/.test.ts)
Add to EditorTabPopup (right-click on Editor's tab)
"""
}
18 changes: 15 additions & 3 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
<!-- <depends>com.intellij.modules.lang</depends>-->
<!-- <depends>com.intellij.modules.lang</depends>-->
<depends>com.intellij.modules.platform</depends>
<depends>NodeJS</depends>
<depends>JavaScript</depends>
Expand All @@ -36,8 +36,16 @@
id="com.nguyennk.action.RunTsAction"
use-shortcut-of="RunDashboard.Run"
class="com.nguyennk.action.RunTsAction">
<add-to-group group-id="ProjectViewPopupMenuRunGroup" anchor="first"/>
<add-to-group group-id="EditorPopupMenu.Run" anchor="first"/>
<add-to-group
group-id="ProjectViewPopupMenuRunGroup"
anchor="first"/>
<add-to-group
group-id="EditorPopupMenu.Run"
anchor="first"/>
<add-to-group
group-id="EditorTabPopupMenuEx"
relative-to-action="RunContextPopupGroup"
anchor="before"/>
</action>
<action id="com.nguyennk.action.DebugTsAction"
use-shortcut-of="RunDashboard.Debug"
Expand All @@ -50,6 +58,10 @@
group-id="EditorPopupMenu.Run"
anchor="after"
relative-to-action="com.nguyennk.action.RunTsAction"/>
<add-to-group
group-id="EditorTabPopupMenuEx"
relative-to-action="com.nguyennk.action.RunTsAction"
anchor="after"/>
</action>
</actions>

Expand Down

0 comments on commit f219ec8

Please sign in to comment.