mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[Markdown][IDEA-213107] Add command name for the increase/decrease header action
GitOrigin-RevId: f6203ee00f20019f55fc19cc7a3275a95673cb45
This commit is contained in:
committed by
intellij-monorepo-bot
parent
eb331dadb4
commit
715a2dbb57
@@ -72,7 +72,8 @@ public abstract class MarkdownHeaderAction extends AnAction implements DumbAware
|
||||
public void actionPerformed(@NotNull AnActionEvent event) {
|
||||
final var editor = MarkdownActionUtil.findRequiredMarkdownEditor(event);
|
||||
final var psiFile = event.getRequiredData(CommonDataKeys.PSI_FILE);
|
||||
WriteCommandAction.runWriteCommandAction(psiFile.getProject(), null, null, () -> {
|
||||
final var commandName = getTemplatePresentation().getText();
|
||||
WriteCommandAction.runWriteCommandAction(psiFile.getProject(), commandName, null, () -> {
|
||||
if (!psiFile.isValid()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user