salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

Generate Manifest File command unavailable for source directories not at force-app/**

Open marshallvaughn opened this issue 2 years ago • 2 comments

Summary

Changes introduced in PR #4208 appear to have broken functionality for manifest generation at paths which are not contained in the default force-app source directory.

Steps To Reproduce:

  1. Create a new project with sfdx, with the default source directory at src, rather than force-app.
  2. Right-click on src, and look for the command SFDX: Generate Manifest File

Expected result

SFDX: Generate Manifest File is available on any directories containing source, as defined in sfdx-project.json — not only subdirectories of force-app.

Actual result

SFDX: Generate Manifest File command is only available within the force-app directory.

Additional information

Screen Shot 2022-07-22 at 11 12 27 AM

Screen Shot 2022-07-22 at 11 12 46 AM

Salesforce Extension Version in VS Code: v55.6.0

SFDX CLI Version: sfdx-cli/7.160.0 darwin-x64 node-v16.16.0

OS and version: macOS 12.4 (Monterey)

marshallvaughn avatar Jul 22 '22 15:07 marshallvaughn

Hi @marshallvaughn thanks for filing this issue! Can you confirm that you also have the default package directory set as src in your sfdx-project.json? And to confirm, you'd like the behavior to display the SFDX: Generate Manifest File command across all folders within your default package directory, as defined in the sfdx-project.json file?

AnanyaJha avatar Jul 25 '22 22:07 AnanyaJha

@AnanyaJha I have the same issue. BTW The path (src/) is set in the packageDirectories in sfdx-project.json. I think the option should be available in any folder and not only in the default path

jdgirald avatar Aug 30 '22 19:08 jdgirald

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

github-actions[bot] avatar Oct 20 '22 02:10 github-actions[bot]

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

git2gus[bot] avatar Oct 20 '22 16:10 git2gus[bot]

seems this was fixed with https://github.com/forcedotcom/salesforcedx-vscode/pull/4411

jdgirald avatar Nov 17 '22 01:11 jdgirald

Addressed with https://github.com/forcedotcom/salesforcedx-vscode/pull/4411

AnanyaJha avatar Dec 07 '22 00:12 AnanyaJha