Skip to content

Commit

Permalink
vscode: allow trailing comma in bun.lock (#15747)
Browse files Browse the repository at this point in the history
  • Loading branch information
RiskyMH authored Dec 18, 2024
1 parent 59e06b0 commit df5f95b
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/bun-vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ At its core is the _Bun runtime_, a fast JavaScript runtime designed as a drop-i

When running programs with Bun from a Visual Studio Code terminal, Bun will connect to the extension and report errors as they happen, at the exact location they happened. We recommend using this feature with `bun --watch` so you can see errors on every save.

![Error messages example](./error-messages.gif)
![Error messages example](https://raw.githubusercontent.com/oven-sh/bun/refs/heads/main/packages/bun-vscode/error-messages.gif)

<div align="center">
<sup>In the example above VSCode is saving on every keypress. Under normal configuration you'd only see errors on every save.</sup>
Expand Down
6 changes: 6 additions & 0 deletions packages/bun-vscode/assets/bun.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON schema for bun.lock files.",
"allowTrailingCommas": true,
"type": "object"
}
Loading

0 comments on commit df5f95b

Please sign in to comment.