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