Skip to content

False positive detection of duplicate ids across multiple view.xml files #767

@bbogovich-sap

Description

@bbogovich-sap

The Ui5 Language Assistant is reading all files in a workspace when validating that controls have unique ids, resulting in many false positive conflicts. Having the same id in multiple view files is legal and extremely common; there is no conflict in actual execution because the view id is prefixed to the control ids.

Steps to reproduce

In a project with more than one view, add a button with id "btnOk" in both views. VSCode will highlight both files as having an id conflict. Also reproducible if two unrelated projects are in the same workspace.

Expected behavior

ID validation will occur within the same file, or at least within the same repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions