From 4b695b7f6bce2eec5a56f1ed7e2aa3547014ef22 Mon Sep 17 00:00:00 2001 From: Denis Bezrukov <6227442+denbezrukov@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:39:24 +0200 Subject: [PATCH] chore: remove RestartBiomeServerAction and related plugin entry. (#110) Eliminated the RestartBiomeServerAction class and its plugin.xml registration, streamlining the codebase. Updated the README to include instructions for enabling code formatting, offering a clearer feature guide to users. --- README.md | 7 +++++++ .../actions/RestartBiomeServerAction.kt | 18 ------------------ src/main/resources/META-INF/plugin.xml | 15 --------------- 3 files changed, 7 insertions(+), 33 deletions(-) delete mode 100644 src/main/kotlin/com/github/biomejs/intellijbiome/actions/RestartBiomeServerAction.kt diff --git a/README.md b/README.md index 9432cb4..1cfa483 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,13 @@ There are several reasons to behave like this: This setting overrides the Biome binary used by the plugin. +#### Enabling Code Formatting + +To enable formatting, open Biome settings and enable **LSP-based Code Formatting**. This feature allows you to format code using the designated hotkey (⌥⇧⌘+L or Ctrl+Alt+L). + +If you want to format code on save, navigate to **Actions on Save** settings and enable **Reformat Code**, specifying the desired file types. + + ### Supported IDEs This plugin is currently supported in the following IDEs: diff --git a/src/main/kotlin/com/github/biomejs/intellijbiome/actions/RestartBiomeServerAction.kt b/src/main/kotlin/com/github/biomejs/intellijbiome/actions/RestartBiomeServerAction.kt deleted file mode 100644 index 3fe7ceb..0000000 --- a/src/main/kotlin/com/github/biomejs/intellijbiome/actions/RestartBiomeServerAction.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.github.biomejs.intellijbiome.actions - -import com.github.biomejs.intellijbiome.services.BiomeServerService -import com.intellij.openapi.actionSystem.AnAction -import com.intellij.openapi.actionSystem.AnActionEvent -import com.intellij.openapi.components.service - -class RestartBiomeServerAction : AnAction() { - override fun actionPerformed(actionEvent: AnActionEvent) { - val project = actionEvent.project - if (project == null || project.isDefault) return - - val biomeServerService = project.service() - - biomeServerService.restartBiomeServer() - biomeServerService.notifyRestart() - } -} diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 3b957ae..5d05fbc 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -67,19 +67,4 @@ - - - - - -