Skip to content

Commit

Permalink
Fix plugin analysis problems (#20)
Browse files Browse the repository at this point in the history
### What's done:
 * Added `com.intellij.modules.java` to plugin dependencies
 * Removed `runReadAction` from `BuildKotlinJsAction#openBrowserWindow`
  • Loading branch information
sanyavertolet authored Sep 29, 2023
1 parent 1b57926 commit 748c657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import com.sanyavertolet.kotlinjspreview.copier.ProjectCopier
import com.sanyavertolet.kotlinjspreview.copier.VfsProjectCopier
import com.sanyavertolet.kotlinjspreview.substituror.AstSubstitutor
import com.sanyavertolet.kotlinjspreview.substituror.Substitutor
import org.jetbrains.kotlin.idea.util.application.runReadAction

/**
* @JsPreview
Expand All @@ -38,6 +37,6 @@ class BuildKotlinJsAction(

private fun openBrowserWindow(project: Project) {
val toolWindow = ToolWindowManager.getInstance(project).getToolWindow(PreviewToolWindowFactory.ID)
runReadAction { toolWindow?.activate(null) }
toolWindow?.activate(null)
}
}
1 change: 1 addition & 0 deletions plugin/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<change-notes>Initial release of the plugin.</change-notes>
<vendor email="lxnfrolov@gmail.com" url="https://www.github.com/sanyavertolet">sanyavertolet</vendor>

<depends>com.intellij.modules.java</depends>
<depends>com.intellij.modules.platform</depends>
<depends>org.jetbrains.kotlin</depends>

Expand Down

0 comments on commit 748c657

Please sign in to comment.