Skip to content

julian-baumann/monaco-vscode-demo

Repository files navigation

MonacoTest

Demo for #465

All relevant parts are location in ./src/app/app.component.ts

Getting started

Downloading the server

  1. Download the code-server from https://update.code.visualstudio.com/commit:f1e16e1e6214d7c44d078b1f0607b2388f29d729/server-<platform>-<arch>/stable for your platform.
  2. Change the webEndpointUrlTemplate in the product.json to http://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

Starting the server

  1. 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>
  1. 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

Starting the Angular application

private readonly projectPath = "/Users/turingmachine/Projects/monaco-test/swift-project";

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published