From 0671495853374c95a10eda86d4e6250eb62ab2d7 Mon Sep 17 00:00:00 2001 From: Bela VanderVoort Date: Fri, 12 Apr 2024 10:42:57 -0500 Subject: [PATCH] Deal with deprecated warning closes #1224 --- .../csharpier/ReformatWithCSharpierAction.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/ReformatWithCSharpierAction.java b/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/ReformatWithCSharpierAction.java index e70d4d1a4..7b7197a95 100644 --- a/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/ReformatWithCSharpierAction.java +++ b/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/ReformatWithCSharpierAction.java @@ -1,9 +1,6 @@ package com.intellij.csharpier; -import com.intellij.openapi.actionSystem.AnAction; -import com.intellij.openapi.actionSystem.AnActionEvent; -import com.intellij.openapi.actionSystem.CommonDataKeys; -import com.intellij.openapi.actionSystem.PlatformDataKeys; +import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.Document; import com.intellij.openapi.project.Project; @@ -12,6 +9,11 @@ public class ReformatWithCSharpierAction extends AnAction { Logger logger = CSharpierLogger.getInstance(); + @Override + public @NotNull ActionUpdateThread getActionUpdateThread() { + return ActionUpdateThread.BGT; + } + @Override public void actionPerformed(@NotNull AnActionEvent e) { this.logger.info("Running ReformatWithCSharpierAction");