diff --git a/package.json b/package.json index 16e7fbb..a2202af 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,10 @@ { "command": "sailboat.liftSailsInStaging", "title": "Sailboat: Lift Sails in Staging env" + }, + { + "command": "sailboat.restartSailsServer", + "title": "Sailboat: Restart Sails Server" } ] }, diff --git a/src/sailsLiftCommands.ts b/src/sailsLiftCommands.ts index 43bff1e..35f79a9 100644 --- a/src/sailsLiftCommands.ts +++ b/src/sailsLiftCommands.ts @@ -1,4 +1,5 @@ const enter = "\u000D"; +const stop = "\x03"; const liftCommand = "sails lift"; export const sailsLiftCommands = [ { @@ -25,4 +26,8 @@ export const sailsLiftCommands = [ command: "sailboat.liftSailsInStaging", text: `${liftCommand} --staging${enter}`, }, + { + command: "sailboat.restartSailsServer", + text: `${stop}${enter}${liftCommand}${enter}`, + }, ];