redhat-developer / redhat-developer/vscode-yaml
yaml.schemas not working with private repos raw url
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Summary
I want to refer the yaml.schemas with a github file which is in a private repo . Typically private repo raw content url comes with a token . If i use the url with a token it fails https://raw.githubusercontent.com/org/repo/master/schema.json?token=xxxxxxxxxxxxxx . Basically url with any special character fails to load ... can you please let me know if there is any other way
error log
Unable to load schema from '': Request vscode/content failed unexpectedly without providing any details.
fortunately this works if I set in
yaml-language-server: $schema= privaterepo with token
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the yaml.schemas failure with a private GitHub raw URL containing a token, then compare it with the yaml-language-server $schema setting that currently works. Trace the URL-loading entry point and determine how special characters are handled; done means tokenized private-repository URLs load successfully through yaml.schemas without regressing ordinary schema URLs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100