redhat-developer / redhat-developer/vscode-yaml

YAML Validation don't work in Remote-SSH Workspace

Open
#872 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

YAML Validations works in local workspace, but in remote-ssh connection doesn't. VSCode doesn't seem to be aware of the JSON Schema at all at the status panel.

Expected Behavior

image

Current Behavior

image

Steps to Reproduce

  1. Open Remote-SSH (YAML extension installed & enabled)
  2. Add Folder test to workspace
  3. Add a schema.json file to the root folder:
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "prop1": {
            "type": "integer"
        },
        "prop2": {
            "type": "string"
        }
    }
}
  1. Add yaml file to workspace
# yaml-language-server: $schema=schema.json
preorder: 1111

Environment

  • Windows
  • Mac
  • [X ] Linux
  • other (please specify)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with Remote-SSH, the YAML extension, a root-level schema.json, and the YAML file containing the $schema comment. Start by comparing validation and schema status between local and remote workspaces. Done means the reproduced YAML receives schema validation in the remote workspace and the schema appears in the status panel.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode, yaml
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.