Skip to content

Add in non-standard lsp request for resolving schemas on the client-side#395

Merged
JPinkney merged 2 commits intomasterfrom
content-request
Nov 26, 2020
Merged

Add in non-standard lsp request for resolving schemas on the client-side#395
JPinkney merged 2 commits intomasterfrom
content-request

Conversation

@JPinkney
Copy link
Copy Markdown
Contributor

@JPinkney JPinkney commented Nov 20, 2020

Signed-off-by: Josh Pinkney joshpinkney@gmail.com

What does this PR do?

This PR is the client-side request to redhat-developer/yaml-language-server#359. The client-side handles the schema downloading and sending the information back to the yaml language server

What issues does this PR fix or reference?

#107

Is it tested? How?

The only way I know how to test this is on the Red Hat VPN.

You'll need the server side changes: redhat-developer/yaml-language-server#359

Once you connect to the VPN these schemas should resolve correctly

"yaml.schemas": {
    "https://gitlab.cee.redhat.com/cpaas/service/-/raw/development/resources/schemas/release-root.json": "release.yml",
    "https://gitlab.cee.redhat.com/cpaas/service/-/raw/development/resources/schemas/product-root.json": "product.yml"
  }

Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
yaml/registerVSCodeContentRequest

Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
@JPinkney JPinkney merged commit b2560d1 into master Nov 26, 2020
@JPinkney JPinkney deleted the content-request branch November 26, 2020 14:16
bleach31 pushed a commit to bleach31/vscode-yaml that referenced this pull request Jan 25, 2022
* add code action to open json schema

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix eslint warning, fix review comments

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix tests

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* simplify code actions implementation

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* add code action to open schema only if 'showDocument' supported

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Fix tests

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* fix test

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>

* Add supported protocol version in readme

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants