question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A 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.

image

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…

image

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:closed
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
andrewhorwoodcommented, Sep 7, 2018

This looks good. It would be very helpful to me and others

2reactions
ntottencommented, Feb 13, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Org Picker UI · Issue #944 · forcedotcom/salesforcedx-vscode
A developer will be working with two different orgs for development. This means that they will have to switch the org they are...
Read more >
Content Picker - Oracle Help Center
A content connector can implement a custom UI for its picker. This can be built using any JS technology. However, it needs to...
Read more >
Datepicker | Open UI
DatePicker - Ant Design, UI Fabric · Datetime Picker - Atlaskit, Lightning Design System · Date picker - Carbon Design System · Calendar...
Read more >
Material-UI Pickers
Designed to be zero-effort compatible with moment, date-fns, luxon and dayjs. Blazing fast & well animated. Following material design guidelines and provide ...
Read more >
Attachment Picker Application (XWiki.org)
Description. The Attachment Picker Application provides a few UI components for the Attachment Picker Macro. A default CSS style sheet in Attachment.Picker.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found