-
Notifications
You must be signed in to change notification settings - Fork 3.8k
vscode: allow trailing comma in bun.lock
#15747
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
Conversation
(also make bun.lock type = jsonc as vscode stable isnt released yet)
| "title": "JSON schema for bun.lock files.", | ||
| "allowTrailingCommas": true, | ||
| "type": "object" | ||
| } No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in future we can type this better like the actual intention of the schema, but for now just using it for allowTrailingCommas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could even submit this upstream in https://github.com/microsoft/vscode/tree/main/extensions/json-language-features. You can still add a more detailed JSON schema later here or in the JSON Schema Store. They’ll both be applied.

Makes vscode show bun.lock as jsonc and suppress the trailing comma warnings. I also made the bun.lockb more strict so it wasnt matching any and all .lockb files.
There was pr adding the jsonc bit to vscode itself, but adding here as its not released yet: microsoft/vscode#235917
also fixes #15780