Skip to content

Fix resolving schemas on web#1173

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:resolve-schema-content-web
Feb 6, 2026
Merged

Fix resolving schemas on web#1173
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:resolve-schema-content-web

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

What does this PR do?

Use URI instead of filepath to retrieve schemas from workspace on web, since the web environment sometimes uses URIs with schemes other than file:// for the workspace files

What issues does this PR fix or reference?

Fixes redhat-developer/vscode-yaml#1194

Is it tested? How?

Manually, integration tests/smoke tests in vscode-yaml

Comment on lines +15 to +17
namespace FSReadUri {
export const type: RequestType<string, string, unknown> = new RequestType('fs/readUri');
}

Check failure

Code scanning / ESLint

Disallow TypeScript namespaces Error

ES2015 module syntax is preferred over namespaces.
@coveralls
Copy link
Copy Markdown

coveralls commented Feb 5, 2026

Coverage Status

coverage: 84.631% (-0.1%) from 84.73%
when pulling 58c4a58 on datho7561:resolve-schema-content-web
into 6ab8de8 on redhat-developer:main.

@datho7561 datho7561 force-pushed the resolve-schema-content-web branch from 0cfd664 to 271802e Compare February 6, 2026 17:56
- Use URI instead of filepath on web, since the web environment
  sometimes uses URIs with schemes other than `file://` for the
  workspace files

Fixes redhat-developer/vscode-yaml#1194

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the resolve-schema-content-web branch from 271802e to 58c4a58 Compare February 6, 2026 20:27
@datho7561 datho7561 marked this pull request as ready for review February 6, 2026 20:34
Copy link
Copy Markdown
Member

@shin19991207 shin19991207 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I tested manually and it works good. Thanks, David!

@datho7561 datho7561 merged commit 9d3b96f into redhat-developer:main Feb 6, 2026
3 of 4 checks passed
@datho7561 datho7561 deleted the resolve-schema-content-web branch February 6, 2026 21:33
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.

Unable to load schema from workspace using settings within GitLab Web IDE

4 participants