Skip to content

'Detect Conflicts At Sync' not working for LWC metadata #5926

@kevin-saltbox

Description

@kevin-saltbox

Summary

Detect Conflicts At Sync setting implies it works for any and all metadata file which has a last modified date. This includes LWC bundles. If it does not, it should be specified in the guide.
https://developer.salesforce.com/docs/platform/sfvscode-extensions/guide/detect-conflicts.html

Steps To Reproduce:

  1. Both DeveloperA and DeveloperB have 'Detect Conflicts At Sync' enabled with Salesforce Extension Pack installed in vscode
  2. DeveloperA makes a change to LWC file abc.js, abc.css, or abc.html and right click SFDX > Deploy this source to org
  3. DeveloperB then also makes a change to abc.js, abc.css, or abc.html and right click SFDX > Deploy this source to org

Expected result

DeveloperB is prompted that there is a conflict, and the deploy does not go through, because the last modified date was more recently than the last successful deployment or retrieval

Actual result

DeveloperB is not prompted that there is a conflict, and the deploy overwrites DeveloperA

Versions

Salesforce Extension Version in VS Code: 62.2.0
Salesforce CLI Version: @salesforce/cli/2.4.10 win32-x64 node-v18.15.0
OS and version: Windows 11
VS Code version: 1.94.2
Most recent version of the extensions where this was working: Unknown

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions