Class VsCodeUtil

java.lang.Object
com.vaadin.copilot.VsCodeUtil

public final class VsCodeUtil extends Object
Utility class for configuring VS Code for hot code replace and Hotswap Agent launch configurations.
  • Method Details

    • ensureAutoHotDeploy

      public static void ensureAutoHotDeploy(File projectFolder) throws IOException
      Enables auto hot deploy of code changes for the given project in VS Code by writing a project specific setting.
      Parameters:
      projectFolder - The project folder
      Throws:
      IOException - If an I/O error occurs
    • addHotswapAgentLaunchConfiguration

      public static void addHotswapAgentLaunchConfiguration(File projectFolder, File javaExecutable, VaadinServletContext vaadinServletContext) throws IOException
      Creates a launch configuration for Hotswap Agent in VS Code for the given project.
      Parameters:
      projectFolder - The project folder
      javaExecutable - The path to the java executable
      vaadinServletContext - The Vaadin servlet context
      Throws:
      IOException - If an I/O error occurs