Skip to content

Unable to navigate to workspace schema within GitLab Web IDE #1195

@kieran-ryan

Description

@kieran-ryan

Describe the bug

Unable to open a schema within the workspace when using the GitLab Web IDE - either via the schema decorator above an associated yaml file or as the 'source' within the hover tooltip of a yaml entity.

Image

Assumed to relate to path-handling disparities between node and web based extension distributions; and to #1194.

Expected Behavior

Clicking links to a workspace schema opens the schema.

Current Behavior

No action is observed, upon clicking the schema file name decorator above an associated yaml file.

A popup error is observed that the schema could not be opened, upon clicking the schema file name within the hover tooltip.

Image

Steps to Reproduce

Click the schema links having completed the below links.

Running prerelease v1.20 within the GitLab Web IDE, configure the extension (including trying "file:///schema.json")...

{
  "yaml.schemas": {
    "dressSize.json": "references-schema.yaml"
  }
}

...to the following yaml...

dress:
  size: -2

...and schema.

{
  "$schema": "https://json-schema.org/draft-07/schema#",
  "properties": {
    "dress": {
      "properties": {
        "size": {
          "oneOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "string",
              "enum": ["S", "M", "L", "XL", "XXL", "XXXL"]
            }
          ]
        }
      }
    }
  }
}

Environment

  • Mac (Safari)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions