Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ide/jetbrains/gateway-plugin/README.md
2499 views

Gitpod Gateway

Provides a way to connect to Gitpod workspaces.

This plugin is based on the IntelliJ Platform Plugin Template.

Development

This project is not Gitpodified yet because it requires running the JetBrains Gateway locally. For now, for development, contributors can use IntelliJ IDEA installed on their machines.

Testing

For testing purposes, it's possible to build the plugin and launch a JetBrains Gateway instance which comes with the dev build of the plugin pre-installed.

Run:

./gradlew runIde

If you want to open a real workspace in the dev build, follow these steps:

  1. Start a workspace

  2. Open the terminal and run

    curl http://localhost:24000/gatewayLink # This will output something like: # jetbrains-gateway://connect#gitpodHost=gitpod.io&workspaceId=andreafalze-gitpodexper-4xasfqb42zr&backendPort=63342
  3. Copy the output value

  4. Go to your local terminal and run:

    ./gradlew runIde --args="jetbrains-gateway://connect#gitpodHost=gitpod.io&workspaceId=andreafalze-gitpodexper-4xasfqb42zr&backendPort=63342"

For executing the tests and the static analysis validations, run:

./gradlew check

Note: Gradle should run with Java 11.

How to test from a Pull Request

Checklist for a Full Manual Test

  • Check if you can create a new workspace

  • Check if you can connect to a running workspace

  • Check if you can connect to a stopped workspace

  • Check if changing the "Gitpod Host" in Preferences >> Tools >> Gitpod takes effect

  • Check if the info displayed in the workspaces list is matching what you see on the Web App Dashboard