redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
668 stars 223 forks source link

YAML Validation don't work in Remote-SSH Workspace #872

Open rssh22 opened 1 year ago

rssh22 commented 1 year ago

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"
        }
    }
    }
  4. Add yaml file to workspace
    # yaml-language-server: $schema=schema.json
    preorder: 1111

Environment

jasro23 commented 1 year ago

Could be related to this - https://github.com/redhat-developer/yaml-language-server/issues/453 ?

gustavo84 commented 1 year ago

hi, i have the same problem, thanks

shanedonnelly1 commented 1 year ago

I'm have the same problem on Mac. Any known workarounds?

marcodungeon commented 1 month ago

Same problem here, Thinkpad with Ubuntu. VS code v1.94. Has anyone found a workaround?