Salesforcedx-vscode: Org Picker shows incorrect default org

Created on 11 May 2021  路  9Comments  路  Source: forcedotcom/salesforcedx-vscode

After I selected a different org in Org Picker, it keeps showing the previous selected org.
Capture

orgmanagement bug

All 9 comments

Hi @EstebanRomero84 - Thanks for reaching out. Can you share a bit more detail:

  1. VS Code Version
  2. SFDX CLI Version
  3. OS and version
  4. What type of Orgs are you working with?
  5. Confirm the steps to reproduce From the description, it sounds like it might be something along the lines of what I put below. Can you share the steps you executed to hit this issue so we can reproduce it?
  6. Authenticate an org using SFDX Authorize an Org
  7. Click the Org alias in the status bar to bring up the Org Picker
  8. Click on another org that you previously authenticated

Hi @smaddox-sf - Please find more details bellow:

  1. VS Code Version: 1.56.1
  2. SFDX CLI Version: sfdx-cli/7.99.0 win32-x64 node-v15.14.0
  3. OS and version: Windows 10 Pro 19042
  4. Type of Orgs: Sandbox
  5. Exactly as you said:
  • Authenticate an org using SFDX Authorize an Org

  • Click the Org alias in the status bar to bring up the Org Picker

  • Click on another org that you previously authenticated

Thanks @EstebanRomero84 - On the VS Code version, can you share the version of the Salesforce extensions? You can see it from the marketplace tab - example:

image

Can you also copy & paste what you see in the 'Output' panel for the steps you listed above?

@smaddox-sf
Salesforce Extension Pack: 51.12.0

Capture

can we confirm that defaultusername field in .sfdx/sfdx-config.json file in your project folder is the username of the correct org (previous org you have authenticated in the step "Authenticate an org using SFDX Authorize an Org")?

defaultusername field in .sfdx/sfdx-config.json file is the username of the org I selected in step 3 (In my example it would be Cladd_Qa)

As I understand, the actual default org is set correctly, just that the org picker doesn't show the correct one. Is that right?

Yes, that is correct.

This issue has been linked to a new work item: W-9421700

Was this page helpful?
0 / 5 - 0 ratings