Skip to content

Commit

Permalink
Revert "Fix Find Mixins TW not showing up"
Browse files Browse the repository at this point in the history
This reverts commit 14b015e.

For some reason Jetbrains hasn't backported a fix that's plaguing
 facet-dependent TWs on 2023.1 yet, so let's revert this commit for 2023.1 only
  • Loading branch information
RedNesto committed Aug 13, 2023
1 parent 567a62d commit 5ce6324
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/platform/mixin/action/FindMixinsAction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ 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: 2 additions & 4 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,8 @@
order="before javaSkipAutopopupInStrings"/>
<weigher key="completion" implementationClass="com.demonwav.mcdev.platform.mixin.completion.MixinCompletionWeigher" id="mcdev.mixin" order="first"/>

<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"/>
<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" />

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

0 comments on commit 5ce6324

Please sign in to comment.