gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.81k stars 1.23k forks source link

Add a button to VS Code Ports View that adds the port to .gitpod.yml in case it's missing there #13069

Open felladrin opened 2 years ago

felladrin commented 2 years ago

Add a button to VS Code Ports View that adds the port to .gitpod.yml in case it's missing there.

For cases when ports are decided during the development, or when we notice a third-party service is using some port and we want to set its 'onOpen' behavior to 'ignore', for example.

There could be another button, along with the four that already exist, to add it to .gitpod.yml. Displaying the button as 'disabled' when the port is already listed in .gitpod.yml would also help to spot missing ports.

Here's a screenshot of what the Ports View looks like at this moment:

image
loujaybee commented 2 years ago

Copying internal comment from discussion:


We indeed should probably think about the “drift” of a users configurations when in a workspace more generally, e.g.

As these can all be “lost” when the user starts a new ephemeral workspace and adds friction. We should where we can “nudge” users towards codifying these settings in the YAML when they take manual actions. Maybe for ports this view is the right touchpoint. (edited)

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.