Uses the wrong schema, even when yaml.schemas is set
See original GitHub issueDescribe the bug
I’m using this extension and the GitHub Actions YAML extension. The last three error messages (using the proper schema) are from that other extension. The erroneous errors above them are from this extension. Disabling the GitHub Actions extension makes those last three (correct, proper) errors disappear, leaving the false errors this extension is reporting.
The problem: this extension thinks my GitHub Actions workflow file is a “deploy php” file and so uses the wrong schema… simply because it has the word “deploy” in its file name. Change the name to build-test-deplox.yml
and everything works. I can’t make this extension ignore YAML files and I can’t force this extension to use the correct schema (on the right, you can see the yaml.schemas
setting being completely ignored).
Unfortunately for my .github/dependabot.yml
file, I’ve had to disable this extension for now. Am I doing something wrong here?
Expected Behavior
Use https://json.schemastore.org/github-workflow for build-test-deploy.yml
like I told it to
Current Behavior
Uses https://raw.githubusercontent.com/deployphp/deployer/master/src/schema.json instead
Steps to Reproduce
- Have
.github/workflows/build-test-deploy.yml
file in your project - Observe this extension invoke the wrong schema
- Try to override the schema for that file (using both full path and simple file name)
- Observe this extension continue to invoke the wrong schema
Bonus: replace “https://json.schemastore.org/github-workflow” with “https://json.schemastore.org/github-workflowfdsfdsff”
in yaml.schemas
and the extension recognizes that the schema does not exist, so it is receiving the proper schema from settings.json
!
Environment
- Windows
- Mac
- Linux
- other (please specify)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:39
- Comments:29 (2 by maintainers)
Top GitHub Comments
For those who don’t know how to set the schema settings with:
Simply press Ctrl+, in visual code > Extentions > Yaml > Edit in settings.json right after Yaml: completion
It looks like
"/.githhub/workflows/**/*.yml"
is spelt wrong, it should probably be"/.github/workflows/**/*.yml"
. This issue is going to be fixed in the next release