redhat-developer / redhat-developer/rsp-server-community

Create server as config file commited in workspace instead of using `rsp-ui`.

Open
#237 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
39
Forks
20
Avg merge
2h 26m
Merged PRs (30d)
4

Description

Instead of using rsp-ui for creating a server it it possible to define at least a default one "as code" in git repo ?

In intelliJ we have the possibility to create launchers using Tomcat, jetty,... and commit them. (The IDE automatically pick them up. )
As a developer, to start a webapp I just need to click on the launcher. No need to deal with any kind of configuration. It just works out of the box.
Which is handy combined with devcontainers for creating ephemeral dev environments in few minutes.

The .vscode/settings.json file doesn't seem to have any option to do so. .vscode/launch.json either.
Do we already have any workaround yet ?

Otherwise is there already an initiative to make it more user friendly ? Maybe a new launcher type rsp-server ?
(https://code.visualstudio.com/api/extension-guides/debugger-extension )

// .vscode/launch.json
    "version": "0.2.0",
    "configurations": [
        {
            "type": "rsp-server",
            "name": "my webapp with tomcat",
            "tomcatServer": {
                "useCatalinaHome": true, // CATALINA_HOME=/usr/share/tomcat
            //    "home": "/usr/share/tomcat",
            //    "base": "/usr/share/tomcat",
            },
            // ...
            "deployments": [
               {
                  "name": "myapp:war",
                  "type": "exploded", // exploded or file
                  "contextPath": "/myapp"
               }
            ]
        }
]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the existing rsp-ui workflow and the .vscode/settings.json and .vscode/launch.json options, then compare them with the VS Code debugger extension guide linked in the issue. Define what a repository-committed rsp-server launcher would need to represent, including the Tomcat settings and deployments shown, and confirm that a developer can start the server without separate configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.