Install Electron via VSCode extensionInstall or Executes Electon apps inside of vscode MotivationIf an extension is to be created which displays a dialog with the help of Electron, or is to call up a session cookie, this is currently only possible with great difficulty because it is not possible to install electron via the package.json.
The aim of this extension is to solve precisely those problems.
Furthermore, javascript files can now be started directly via vscode in electron so the files no longer have to be compiled. UsageThis is more designed as a service, that means you can install electron but it will not help alot. These is an example how this could be used inside your extension @see Vscode-Electron-Demo and Run Electron Command how this could be used inside an extension. APICommandParams
Commandsqmasters:electron-installinstall: electron in specifc version if not exists @params[version:string] @returnstring version which has been installed qmasters:electron-runStarts electron with passed file. Second parameter is optional, if it passed as ...string[] it will use the latest version which can be found for electron, all params will passed as command line arguments to electron. To run in a specific version pass an object as second param
In both cases if electron in this version could not be found, latest electron version or passed one, it will install the required version. @paramsfile: string, [EventParams] @returnChildProcess Development
|