https://github.com/eclipsesource/eclipse-theia-examples
Examples for Eclipse Theia
https://github.com/eclipsesource/eclipse-theia-examples
Last synced: about 1 year ago
JSON representation
Examples for Eclipse Theia
- Host: GitHub
- URL: https://github.com/eclipsesource/eclipse-theia-examples
- Owner: eclipsesource
- License: mit
- Created: 2018-09-04T11:56:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T17:25:46.000Z (over 3 years ago)
- Last Synced: 2025-06-04T09:52:52.260Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 2.81 MB
- Stars: 10
- Watchers: 4
- Forks: 12
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eclipse Theia Examples
[](https://travis-ci.org/eclipsesource/eclipse-theia-examples)
This repository contains code examples for common extension scenarios, e.g. adding a menu contribution, in Eclipse Theia.
## Prerequisites
Install [nvm](https://github.com/creationix/nvm#install-script).
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
Install npm and node.
nvm install 10
nvm use 10
Install yarn.
npm install -g yarn
Install linux packages (if necessary).
sudo apt-get install g++-4.8 libsecret-1-dev xvfb libx11-dev libxkbfile-dev
## Install dependencies
yarn
## Running the browser example
yarn rebuild:browser
cd browser-app
yarn start
Open http://localhost:3000 in the browser.
## Running the Electron example
yarn rebuild:electron
cd electron-app
yarn start
## Developing with the browser example
Go to Tasks -> Run Task... and select `Theia Examples: Browser Development` in VS code.
Open http://localhost:3000 in the browser.
## Developing with the Electron example
Start watching of label-contribution-example.
cd label-contribution-example
yarn watch
Start watching of editor-example.
cd editor-example
yarn watch
Start watching of command-example.
cd command-example
yarn watch
Start watching of the electron example.
yarn rebuild:electron
cd electron-app
yarn watch
Launch `Start Electron Backend` configuration from VS code.
## License
This project is licensed under the MIT License. See the [LICENSE file](https://github.com/eclipsesource/eclipse-theia-examples/blob/master/LICENSE) for more information.