PY-54597 [action-update-thread] Set ActionUpdateThread for com.jetbrains.python.*

GitOrigin-RevId: 991229338ee8f91d7f9b49794fe1268bf78c2897
This commit is contained in:
Elizaveta Shashkova
2022-06-10 18:48:52 +03:00
committed by intellij-monorepo-bot
parent d7b9f88257
commit af1356d36c
14 changed files with 79 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.packaging;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformCoreDataKeys;
@@ -20,6 +21,11 @@ public class PyManagePackagesAction extends AnAction {
}
}
@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}
@Override
public void update(@NotNull AnActionEvent e) {
Module module = e.getData(PlatformCoreDataKeys.MODULE);