Skip to content

JSONC trailing comma warnings in bun.lock #40970

@jchitel

Description

@jchitel

Summary

bun.lock reports warnings for trailing commas that cannot be ignored, even though the file is controlled by Bun.

Description

This will happen in any project with a bun.lock file produced by a bun install command.

bun.lock is correctly registered as JSONC, but it doesn't really make sense to report diagnostics since it is managed by Bun. Since trailing commas seem to be allowed in JSONC files, it is debatable whether these warnings should be present in any JSONC file, but I'm not aware of the rationale.

Steps to reproduce:

  1. Open Zed in a Bun project with a bun.lock file.

Expected Behavior:

No diagnostics reported for bun.lock.

Actual Behavior:

The diagnostics panel indicates warnings for trailing commas in bun.lock.

Zed Version and System Specs

Zed: v0.208.6 (Zed)
OS: macOS 15.7
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions