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

environmentSelectedOnStart should be option in .httpyac.json #332

Open
jhonnycano-forge opened this issue Oct 2, 2024 · 1 comment
Open

Comments

@jhonnycano-forge
Copy link

The httpyac vscode plugin allows to select an environment on start through a vscode setting (environmentSelectedOnStart). This would be a very good setting to be used in the settings files (.httpyac.json, httpyac.js, and so on).

Although a workaround exists for vscode (create a .vscode/settings.json file and set the setting httpyac.environmentSelectedOnStart). Some projects discourage adding this file to the git repository, so I think, it would be a good idea to have the option to set this value from the httpyac settings system.

@alekdavis
Copy link

@jhonnycano-forge I agree. But I think even better option would be to have the default marked in the environment file(s). It would be tricky if you use dotenv environment files (maybe have a convention with name with .default suffix or something like this), but should be simple for JSON/IntelliJ environment file. The point is that VSCode settings are generally not project specific, so they are better suited for things that do not change from project to project, but default environment is project-specific. But that wouldn't be on my high priority list, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants