Skip to content

[BUG] [ADP] The More information link in the documentation tooltip redirects to a wrong ui5 version. #797

Description

@avasilev-sap

Prerequisites We are in an adaptation project opened in a BAS instance.

When we hover a control in a fragment xml file the documentation tooltip contains a more information link at the bottom, which redirects to a wrong version of the UI5 framework documentation, the version used by the application itself should be used. Inside an adaptation project the UI5 application uses a version of the framework defined in the ui5.yaml under the ui5 node:

server:
  customMiddleware:
    ...
    - name: fiori-tools-proxy
      afterMiddleware: fiori-tools-preview
      configuration:
        ignoreCertErrors: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted
        backend:
          - destination: UI8CLNT099
            url: https://REQUIRED_FOR_VSCODE.example
            path: /sap
        ui5:
          path:
            - /resources
            - /test-resources
          url: https://sapui5preview-sapui5.dispatcher.int.sap.eu2.hana.ondemand.com:443
          version: snapshot // <--- The documentation url must be ${url}/${version}

In the screenshot the more information link redirects to 1.71.82 version but the application uses snapshot version 1.149.0-SNAPSHOT.

Image Image

I addressed the issue in this extension because it is used by the BAS IDE:

user: ~ $ find ~/.vscode -name "*sap*" 2>/dev/null
...
/home/user/.vscode/data/User/globalStorage/saposs.vscode-ui5-language-assistant
/home/user/.vscode/data/User/globalStorage/saposs.vscode-ui5-language-assistant/ui5-resources-cache/SAPUI5/1.71.82/sap.ui.unified.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions