Skip to content

auto_install_extensions fails on JSONC comments and trailing commas #708

@rodmk

Description

@rodmk

Module: code-server and vscode-web (latest)

Expected: auto_install_extensions = true parses .vscode/extensions.json with comments and trailing commas (valid JSONC).

Actual: The sed 's|//.*||g' | jq pipeline fails on:

  • /* */ block comments — sed only strips //
  • Trailing commas — jq rejects them
  • URLs in strings — sed mangles https:// to https:

Reproduction: Create .vscode/extensions.json:

{
  "recommendations": [
    "ms-python.python",
    /* a block comment */
    "dbaeumer.vscode-eslint", // trailing comma
  ]
}

Use auto_install_extensions = true — extensions fail to install.

Fix in #707.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions