Skip to content
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

Provide JSON validation for config files #1208

Open
MahdiBM opened this issue Nov 16, 2024 · 0 comments
Open

Provide JSON validation for config files #1208

MahdiBM opened this issue Nov 16, 2024 · 0 comments
Labels
enhancement New feature or request sourcekit-lsp SourceKit-LSP issue

Comments

@MahdiBM
Copy link
Contributor

MahdiBM commented Nov 16, 2024

Is your feature request related to a problem? Please describe.
This extension should provide JSON schemas for validation, for JSON config files related to this extension.
For example for .sourcekit-lsp/config.json, when sourcekit-lsp supports that.
Then users will have an easier time writing config files.

Please Note that VS Code does not fully support newer version of JSON schema specification and we'll probably need to stick to version draft-07.

For the JSON validations to be enabled, this extension can use the package.json file. See rust-analyzer as an example.

Describe alternatives you've considered
Users can manually use "$schema": "link/to/schema" in the config JSON files to manually enable schema validations. See the link for a full of the options.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sourcekit-lsp SourceKit-LSP issue
Projects
Development

No branches or pull requests

2 participants