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

Support shared variables can be used across all the environments #128

Closed
Huachao opened this issue Oct 24, 2017 · 7 comments
Closed

Support shared variables can be used across all the environments #128

Huachao opened this issue Oct 24, 2017 · 7 comments

Comments

@Huachao
Copy link
Owner

Huachao commented Oct 24, 2017

  • VSCode Version:
  • OS Version:
  • REST Client Version:

Steps to Reproduce:

  1. Thanks the suggestion from @dprice mentioned in Goto Symbols Support for Multiple Requests in a File #126
@dprice
Copy link

dprice commented Oct 26, 2017

Awesome! I haven't had a chance to try this out, yet. How long does it take for this to show up in the VSCode Marketplace (and within VSCode Extensions)?

@Huachao
Copy link
Owner Author

Huachao commented Oct 26, 2017

@dprice Since it is still under development, it won't be included in next release in late October, however, it should be included in a release of Novber. Sorry for the inconvenience

@dprice
Copy link

dprice commented Oct 26, 2017

No worries! If I find the time, I'll clone the repo locally and see if I can getting running with the nightly stuff.

@dprice
Copy link

dprice commented Oct 31, 2017

How will the shared variables be configured? Are these also in the user settings file under the environmentVariables setting or somewhere else?

@Huachao
Copy link
Owner Author

Huachao commented Oct 31, 2017

@dprice also in the setting, but with a special env name to represent it

@Huachao
Copy link
Owner Author

Huachao commented Nov 17, 2017

@dprice you can try the latest version 0.16.1 to verify this feature. You just need to add variables in an environment named $shared, you can see more details from README. One example is like below:

"rest-client.environmentVariables": {
        "$shared": {
            "host": "https://api.github.com",
            "app_server": "localhost",
            "app_token": "12345678",
            "name": "openstack",
            "version": "v1"
        },
        "Sandbox": {
            "name": "Huachao"
        },
        "Prod": {
            "version": "v2"
        }
    }```

@dprice
Copy link

dprice commented Nov 17, 2017 via email

@Huachao Huachao changed the title Support shared variables can be used across all the environemnts Support shared variables can be used across all the environments Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants