Coder Social home page Coder Social logo

vscode-theia-extension's Introduction

VS Code & Theia Extension

Example mono-repo demonstrating the following:

Simple implementation of a custom Theia plugin API namespace

This follows the custom API namespace documentation and is implemented in the ide-ext package, specifically:

  • Backend which registers API support in the plugin host
  • Plugin which implements the support for the custom API
  • Frontend which exposes API functionality to the frontend via RPC

The API is outlined in the api package

A VS Code Extension which upgrades functionality in Theia

This extension is found in the extension package with the Theia plugin namespace implemented here.

Four custom methods of calling into Theia are outlined:

Running

Clone this repo and execute:

yarn

Running the VS Code Extension launch configuration starts an extension host with the vanilla extension running in VS Code:

Screenshot 2022-02-17 at 19 14 47

The extension functionality can be executed using the tree view button exposed in the added view.

Running the Theia IDE launch configuration starts a browser-based Theia IDE which also loads the extension:

Screenshot 2022-02-17 at 19 15 16

The Extension Menu allows execution of two communication samples:

  • Event to extension fires a custom event in the extension which is then responded to with a call back into Theia
  • Get message from extension executes a function handler in the extension

vscode-theia-extension's People

Contributors

thegecko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.