Org Picker UI
See original GitHub issueA developer will be working with two different orgs for development. This means that they will have to switch the org they are running commands against. In the CLI this is already easily done by specifying the targetUsername
argument, however, there is no such capability in VS Code. As such, we should allow a developer to specify a default org to run commands against, similar to the above proposal about default package directory.
The bottom toolbar would show the currently selected org that operations are performed against.
Clicking on the org name would bring up a selection dialog that would present the user with the following options:
- Authorize new Org
- Create new Scratch Org
- List of the rest of the authorized orgs…
They could then either select an org they have already authorized or authorize a new org or create a scratch org. The results of all of these operations would change the currently selected org.
Similar to the default package directory setting for VS Code, we would not want to store this in a file that is stored in source control (i.e. sfdx-project.json). This is a setting specific to the local developer and as such, the currently selected org would be stored in the .sfdx directory.
VS Code Command In addition to allowing users to set the current org via UI we should expose the same functionality via the command “SFDX: Set Default Org”
Doc Impact Current functionality opens the org in the browser. Make sure to alert the user of the new functionality & properly deprecate/remove current behavior from docs.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (6 by maintainers)
Top GitHub Comments
This looks good. It would be very helpful to me and others
The delay is something we are fixing.
The ability to open an org is still there. The icon is the same. We just removed the text. See: https://twitter.com/ch_sz_knapp/status/1095600887094018048?s=21