Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have an envvar with the IDE value #6803

Closed
mrsimonemms opened this issue Nov 19, 2021 · 5 comments
Closed

Have an envvar with the IDE value #6803

mrsimonemms opened this issue Nov 19, 2021 · 5 comments
Labels
component: ide editor: jetbrains meta: stale This issue/PR is stale and will be closed soon team: IDE

Comments

@mrsimonemms
Copy link
Contributor

Is your feature request related to a problem? Please describe

Multi-user teams would like to automate tasks based on which IDE are being used for development. Depending upon which IDE in use, certain tasks will need to be differentiated.

Describe the behaviour you'd like

Have an envvar set with an enum of the values. For example, GITPOD_IDE with values VSCODE_BROWSER, VSCODE_EXTERNAL, INTELLIJ_PROJECTOR and INTELLIJ_CWM

Describe alternatives you've considered

Additional context

Request from a user managing multiple developers with different preferences for VSCode in browser, VSCode external, IntelliJ projector and IntelliJ Code-With-Me

@loujaybee
Copy link
Member

Relates to: #6602

@akosyakov
Copy link
Member

akosyakov commented Nov 25, 2021

Have an envvar set with an enum of the values. For example, GITPOD_IDE with values VSCODE_BROWSER, VSCODE_EXTERNAL, INTELLIJ_PROJECTOR and INTELLIJ_CWM

In the case with desktop we actually run 2 ides. There is already an env variable for web: GITPOD_IDE_ALIAS which is either code or code-latest. We can add GITPOD_DESKTOP_IDE_ALIAS by analogy.

One thing is that we don' want env var to be an api, but instead one should use supervisor info endpoint to read such data or maybe we can add it to gp for end users, i.e. gp info which returns json object from supervisor and accept json path to get a concrete property value? @csweichel wdyt?

@loujaybee
Copy link
Member

loujaybee commented Nov 25, 2021

To provide a bit more context: the original user (@buggtb) in this case was trying to create workflows which work in either a browser context or a desktop context (as there are differences between set-up). There might be more elegant ways that we can allow users to provide these different configurations. Also feels loosely related to: #6706, #6874 and #6602.

@stale
Copy link

stale bot commented Feb 23, 2022

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.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Feb 23, 2022
@loujaybee
Copy link
Member

loujaybee commented Mar 4, 2022

I don't think this issue is required any more with the move to fully integrated JetBrains Gateway, will close 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ide editor: jetbrains meta: stale This issue/PR is stale and will be closed soon team: IDE
Projects
Status: No status
Development

No branches or pull requests

3 participants