Package com.vaadin.copilot
Class VsCodeUtil
java.lang.Object
com.vaadin.copilot.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 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 folderjavaExecutable
- The path to the java executablevaadinServletContext
- The Vaadin servlet context- Throws:
IOException
- If an I/O error occurs
-