Skip to content

Commit

Permalink
Restore "Fix Find Mixins TW not showing up"
Browse files Browse the repository at this point in the history
This reverts commit 5ce6324.
  • Loading branch information
RedNesto committed Aug 13, 2023
1 parent d1a0c0f commit faa7e14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/main/kotlin/platform/mixin/action/FindMixinsAction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ class FindMixinsAction : AnAction() {
class TWFactory : ToolWindowFactory {
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
}

override fun shouldBeAvailable(project: Project): Boolean {
return false
}
}

companion object {
Expand Down
6 changes: 4 additions & 2 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,10 @@
order="before javaSkipAutopopupInStrings"/>
<weigher key="completion" implementationClass="com.demonwav.mcdev.platform.mixin.completion.MixinCompletionWeigher" id="mcdev.mixin" order="first"/>

<toolWindow anchor="bottom" icon="/assets/icons/mixin/mixin_class_gutter.png" canCloseContents="true" doNotActivateOnStart="true"
factoryClass="com.demonwav.mcdev.platform.mixin.action.FindMixinsAction$TWFactory" id="Find Mixins" />
<facet.toolWindow anchor="bottom" icon="/assets/icons/mixin/mixin_class_gutter.png" canCloseContents="true"
doNotActivateOnStart="true" facetIdList="minecraft" showOnStripeByDefault="false"
factoryClass="com.demonwav.mcdev.platform.mixin.action.FindMixinsAction$TWFactory"
id="Find Mixins"/>

<!-- Mixin configuration -->
<fileType name="Mixin Configuration" language="JSON" implementationClass="com.demonwav.mcdev.platform.mixin.config.MixinConfigFileType" fieldName="INSTANCE" />
Expand Down

0 comments on commit faa7e14

Please sign in to comment.