Skip to content

Commit

Permalink
Merge pull request #221 from dontry/fix/override-getActionUpdateThrea…
Browse files Browse the repository at this point in the history
…d-with-action-EDIT

override ActionUpdateThread method with new action EDT
  • Loading branch information
MrCoder authored Nov 22, 2024
2 parents e9dedde + aa04823 commit c6a43fe
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.zenuml.sequence.plugins.jetbrains.actions;

import com.intellij.ide.BrowserUtil;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.intellij.plugins.markdown.ui.actions.MarkdownActionUtil;
Expand All @@ -18,6 +19,11 @@ public OpenInBrowserAction() {
super(TITLE);
}

@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.EDT;
}

public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
SplitFileEditor splitEditor = MarkdownActionUtil.findSplitEditor(anActionEvent);
MarkdownPreviewFileEditor markdownPreviewFileEditor = (MarkdownPreviewFileEditor) splitEditor.getSecondEditor();
Expand Down

0 comments on commit c6a43fe

Please sign in to comment.