com.vaadin.copilot.
Class VsCodeUtil
Utility class for configuring VS Code for hot code replace and Hotswap Agent launch configurations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addHotswapAgentLaunchConfiguration
(File projectFolder, File javaExecutable, VaadinServletContext vaadinServletContext) Creates a launch configuration for Hotswap Agent in VS Code for the given project.
static void
ensureAutoHotDeploy
(File projectFolder) Enables auto hot deploy of code changes for the given project in VS Code by writing a project specific setting.
-
Method Details
-
ensureAutoHotDeploy
Enables auto hot deploy of code changes for the given project in VS Code by writing a project specific setting.
Parameters:
projectFolder
- The project folderThrows:
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 folderjavaExecutable
- The path to the java executablevaadinServletContext
- The Vaadin servlet contextThrows:
IOException
- If an I/O error occurs
-