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.

Context that shows/hides commands is not refreshed when switching orgs

See original GitHub issue

Summary

The context set for deploy/retrieve commands is not being refreshed when a user moves between different org types or creates a new scratch org on a new project. This is causing users not being able to access commands like SFDX: Push Source to Default Scratch Org, SFDX: Deploy Source in Manifest to Org, etc.

Steps To Reproduce:

  1. Create a new project SFDX : Create Project with Manifest
  2. Create a scratch org SFDX: Create a Default Scratch Org
  3. Create valid apex code SFDX: Create Apex Class
  4. Try and deploy the new code to the newly create scratch org by opening the command palette and looking for SFDX: Push Source to Default Scratch Org

Expected result

I see the push command on the command palette and I’m able to push code to the scratch org.

Actual result

Context is not updated and commands remain hidden to the user. The user needs to reload the vscode window in order for the commands to show.

Salesforce VS Code Extensions Version: 45.6.0 and above VS Code Version: 1.32.3 SFDX CLI Version: 6.56.0-e3fd846a1f OS and version: Mac OS High Sierra

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:32 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lcamposcommented, May 15, 2019

@Patlatus you can ignore that error about en-us but the error above that one tells me you did not configure Java for the apex extension (unrelated to the commands & context issue in this thread). You can get that fixed by following the instructions in Set Your Java Version.

Also, in the bottom-right corner I see you have 2 unread notifications (click the bell icon and you’ll be able to see them). Can you tell me what those are for ?

Btw, VSCode’s Dev Tools is not something you install, it comes as part of normal VSCode. This is similar to your browser’s Dev Tools since VSCode is just an app that runs on top of a chromium browser (Electron).

0reactions
smaddox-sfcommented, May 22, 2020

Hi @saramorgan - Thanks for reaching out. Can you please open a new issue with the details of what you’re seeing so we can investigate? I assure you we still have plenty of love for Aura!

(btw, we often don’t see comments on closed issues, so a new issue is best to ensure it’s seen.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

No new messages in desktop client after switching organisation
Hello, we have the following problem: Using Windows Desktop Client and we have user which are switchting with this client between own and ......
Read more >
1647654 - Show keyboard shortcuts on recipient pill(s) context menu
Open Bug 1647654 Opened 2 years ago Updated 2 years ago ... shortcuts in context menu or not (e.g. pref toggles attribute, CSS...
Read more >
SAP BI 4.3 SP2: What's New In Web Intelligence and ...
When a document refresh is taking long and the Query Panel is not open, you can switch to another document by returning to...
Read more >
flexAnalysis 3.4 User Manual
Bruker Daltonik GmbH is not liable for errors contained herein or for ... This command is used to change the color of one...
Read more >
Plastic SCM version control · GUI guide
(The context menu does not appear at all in this case.) If a context-menu command has a keyboard equivalent ("accelerator"), it is listed...
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