Skip to content

Update to latest vscode-json-languageservice #1072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

datho7561
Copy link
Contributor

What does this PR do?

This PR updates vscode-json-languageservice to the latest version.

The primary motivation for doing this is to allow warnings to be reported on schemas. I would like to report warnings on schemas as a part of #1065.

When updating the json language service, there were many API changes that I needed to adapt to, and some tests that I changed.

Notably, I needed to copy a lot of the implementation of JSONSchemaService into our subclass of JSONSchemaService. JSONSchemaService turns all schema identifiers into URIs and escapes all / in the fragment, and does this in the private normalizeId method that we can't override Combined, these behaviours cause many tests to fail.

What issues does this PR fix or reference?

Closes #1069

Is it tested? How?

Existing test suite.

The primary motivation for doing this is to allow warnings to be
reported on schemas.
I would like to report warnings on schemas as a part of
redhat-developer#1065.

When updating the json language service,
there were many API changes that I needed to adapt to,
and some tests that I changed.

Notably, I needed to copy a lot of the implementation of
`JSONSchemaService` into our subclass of `JSONSchemaService`.
`JSONSchemaService` turns all schema identifiers into URIs and escapes all
`/` in the fragment,
and does this in the private `normalizeId` method that we can't override
Combined, these behaviours cause many tests to fail.

Closes redhat-developer#1069

Signed-off-by: David Thompson <davthomp@redhat.com>
@coveralls
Copy link

Coverage Status

coverage: 83.316% (-0.6%) from 83.871%
when pulling 0b6b08d on datho7561:update-vscode-json-languageservice
into de78c0e on redhat-developer:main.

@datho7561 datho7561 mentioned this pull request May 12, 2025
1 task
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.

Update vscode-json-languageservice to latest version
2 participants