Skip to content

fix(config): VSCode workspace $schema resolultion#515

Merged
kay-schecker merged 2 commits intoOpenAPITools:masterfrom
ermik:fix/workspace-config-schema
Mar 17, 2022
Merged

fix(config): VSCode workspace $schema resolultion#515
kay-schecker merged 2 commits intoOpenAPITools:masterfrom
ermik:fix/workspace-config-schema

Conversation

@ermik
Copy link
Copy Markdown
Contributor

@ermik ermik commented Oct 14, 2021

I noticed that in VSCode workspace context the $schema reference to the .json in node_modules is not resolving. Seems that the path (which is usually a web-accessible URL) is resolved as relative to / root (see screenshot). This causes ENOENT and prevents grammars from loading.

image

Specifying path as explicitly relative fixes this issue.

- VSCode workspaces resolve 'somepath' as relative to root
- this causes "ENOENT"
- specifying path as explicitly relative fixes this issue
@ermik
Copy link
Copy Markdown
Contributor Author

ermik commented Oct 14, 2021

Happy to add tests or anything else to make this more robust. This could also warrant an upstream bug report, but I probably won't have time to put that together.

@kay-schecker kay-schecker merged commit 80b5733 into OpenAPITools:master Mar 17, 2022
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants