salesforcedx-vscode: Context that shows/hides commands is not refreshed when switching orgs
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:
- Create a new project
SFDX : Create Project with Manifest
- Create a scratch org
SFDX: Create a Default Scratch Org
- Create valid apex code
SFDX: Create Apex Class
- 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
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 32 (6 by maintainers)
@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).