Demo for #465
All relevant parts are location in ./src/app/app.component.ts
- Download the
code-server
fromhttps://update.code.visualstudio.com/commit:f1e16e1e6214d7c44d078b1f0607b2388f29d729/server-<platform>-<arch>/stable
for your platform. - Change the
webEndpointUrlTemplate
in theproduct.json
tohttp://localhost:4200
;
You can also copy the
product.json
from ./vscode-server/product.json
For more detailed instructions, please refer to monaco-vscode-api/vscode_server.md
- You will have to install the swift extension which is found in the root of this repository (./sswg.swift-lang-1.10.4.vsix)
./bin/code-server --install-extension <path to sswg.swift-lang-1.10.4.vsix>
- Now start the server with the following arguments:
./bin/code-server --port 8080 --without-connection-token --accept-server-license-terms --host 0.0.0.0
Adjust the projectPath
to your swift project in ./src/app/app.component.ts
npm install
npm run start
This will start the development server of angular with hot reloading enabled. Either view this project in a browser or start electron with this command:
npm run electron:serve