From 7d64cbb3b176ec4c6bcaa60472c40cbf2f57e09e Mon Sep 17 00:00:00 2001 From: Dmitrii Chechetkin Date: Tue, 13 Aug 2024 13:08:52 -0400 Subject: [PATCH] json plugin dependency + embedding action thread error --- .../intellij/searchworkbench/actions/AddEmbeddingAction.java | 5 +++++ src/main/resources/META-INF/plugin.xml | 1 + 2 files changed, 6 insertions(+) diff --git a/src/main/java/com/couchbase/intellij/searchworkbench/actions/AddEmbeddingAction.java b/src/main/java/com/couchbase/intellij/searchworkbench/actions/AddEmbeddingAction.java index 24d699b8..8ba64947 100644 --- a/src/main/java/com/couchbase/intellij/searchworkbench/actions/AddEmbeddingAction.java +++ b/src/main/java/com/couchbase/intellij/searchworkbench/actions/AddEmbeddingAction.java @@ -1,6 +1,7 @@ package com.couchbase.intellij.searchworkbench.actions; import com.couchbase.intellij.embeddings.EmbeddingModelDialog; +import com.intellij.openapi.actionSystem.ActionUpdateThread; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.CommonDataKeys; @@ -41,4 +42,8 @@ public void update(@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(isEnabled); } + @Override + public @NotNull ActionUpdateThread getActionUpdateThread() { + return ActionUpdateThread.BGT; + } } \ No newline at end of file diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index a7068cec..acd074f3 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -42,6 +42,7 @@ com.intellij.modules.platform + com.intellij.modules.json