Add the ability to kill running VS Code instance

This commit is contained in:
Asher
2020-02-27 12:04:23 -06:00
parent fd65cadaea
commit 21cfeb9da0
9 changed files with 96 additions and 58 deletions

View File

@ -44,9 +44,9 @@ const main = async (args: Args): Promise<void> => {
}
const httpServer = new HttpServer(options)
const api = httpServer.registerHttpProvider("/api", ApiHttpProvider, httpServer, args["user-data-dir"])
const vscode = httpServer.registerHttpProvider("/vscode", VscodeHttpProvider, args)
const api = httpServer.registerHttpProvider("/api", ApiHttpProvider, httpServer, vscode, args["user-data-dir"])
const update = httpServer.registerHttpProvider("/update", UpdateHttpProvider, !args["disable-updates"])
httpServer.registerHttpProvider("/vscode", VscodeHttpProvider, args)
httpServer.registerHttpProvider("/login", LoginHttpProvider)
httpServer.registerHttpProvider("/", MainHttpProvider, api, update)