Replies: 1 comment
-
Hi @microweii thanks for opening this! As of right now, the Salesforce Extensions don't support multi-root workspaces. More info here: #970. We'll be looking into this further in a future iteration, feel free to provide more information around the type of experience you'd be looking for. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
When loading a multi-root workspace, the SFDX commands relating to the local dev server do not work, saying the command is not found (See image).
Note: If a single-root workspace is loaded, the command works, and the command continues to work after adding new root folders to the workspace. It will fail as above once the new workspace is reloaded.
Steps To Reproduce:
sfdx plugins:install @salesforce/lwc-dev-server
.SFDX: Start local development server
Expected result
There should be no error prompt, and a successful command output should appear like below:
Actual result
When executing the command, the error
Command 'SFDX: Start Local Development Server' resulted in an error (command 'sfdx.force.lightning.lwc.start' not found)
appears, and then nothing executes.Additional information
Use case for workspaces
I use workspace files to hold some settings specific for SFDX, such as disabling unnecessary extensions and having different SFDX settings for different kinds of SFDX projects (e.g. trailhead vs commercial work). I'd like to work with multi-root workspaces as a way to quickly navigate between projects, which is useful if I need to quickly refer to another project/repository's code, without having to load a new VS Code window (and therefore re-execute extensions). The SFDX Extension Pack in particular takes a relatively long time for me to load (at least 1 minute, often longer).
Other plugins active
I have some other plugins installed; doubtful they have any impact on this issue but for completeness, I'm listing them as well:
Salesforce Extension Version in VS Code: v55.0.0
SFDX CLI Version: sfdx-cli/7.153.1 win32-x64 node-v16.15.0
OS and version:
Beta Was this translation helpful? Give feedback.
All reactions