Skip to content

Conversation

@RiskyMH
Copy link
Contributor

@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 fixes #15780

(also make bun.lock type = jsonc as vscode stable isnt released yet)
@robobun
Copy link
Collaborator

robobun commented Dec 13, 2024

Updated 7:00 PM PT - Dec 17th, 2024

@RiskyMH, your commit 8c57436 has some failures in #8132


🧪   try this PR locally:

bunx bun-pr 15747

"title": "JSON schema for bun.lock files.",
"allowTrailingCommas": true,
"type": "object"
} No newline at end of file
Copy link
Contributor 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
Contributor 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

RiskyMH and others added 2 commits December 18, 2024 12:42
don't try to relative url, just get it from github
@Jarred-Sumner Jarred-Sumner merged commit df5f95b into main Dec 18, 2024
5 of 20 checks passed
@Jarred-Sumner Jarred-Sumner deleted the riskymh/vscode-ext branch December 18, 2024 02:05
brainkim pushed a commit to brainkim/bun that referenced this pull request Dec 18, 2024
heimskr pushed a commit that referenced this pull request Dec 31, 2024
probably-neb pushed a commit to probably-neb/bun that referenced this pull request Jan 7, 2025
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.

VSCode extension page shows broken image for error-messages.gif

5 participants