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

vscode: allow trailing comma in bun.lock #15747

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

RiskyMH
Copy link
Member

@RiskyMH RiskyMH commented Dec 13, 2024

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 make bun.lock type = jsonc as vscode stable isnt released yet)
@robobun
Copy link

robobun commented Dec 13, 2024

@RiskyMH, your commit 6dba1b7 has some failures in #7940

"title": "JSON schema for bun.lock files.",
"allowTrailingCommas": true,
"type": "object"
}
Copy link
Member Author

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

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.

@RiskyMH
Copy link
Member Author

RiskyMH commented Dec 13, 2024

The warnings I am referring to are: Trailing comma jsonc(519) (its minor but unnecessary warnings, and can easily be removed if fixed upstream)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants