Skip to content

vp check --fix formatting jsonc differently from Oxc VS Code extension #1118

Description

@nofxboy1234

Describe the bug

I have the Vite Plus Extension Pack extension installed in vscode.
In a default fresh vite+ application, when I save tsconfig.json, the oxc vs code extension produces a different output to vp check --fix.

Reproduction

https://github.com/nofxboy1234/vp-temp2

Steps to reproduce

Open tsconfig.json with no trailing comma
Save in VS Code with Oxc formatter
Trailing comma gets added
Run vp check --fix
Trailing comma gets removed

System Info

vp env current:

VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.14.0
  Source   lts

Tool Paths:
  node  /home/dylan/.vite-plus/js_runtime/node/24.14.0/bin/node
  npm   /home/dylan/.vite-plus/js_runtime/node/24.14.0/bin/npm
  npx   /home/dylan/.vite-plus/js_runtime/node/24.14.0/bin/npx

vp --version:

VITE+ - The Unified Toolchain for the Web

vp v0.1.13

Local vite-plus:
  vite-plus  v0.1.13

Tools:
  vite             v8.0.1
  rolldown         v1.0.0-rc.10
  vitest           v4.1.0
  oxfmt            v0.41.0
  oxlint           v1.56.0
  oxlint-tsgolint  v0.17.1
  tsdown           v0.21.4

Environment:
  Package manager  pnpm v10.32.1
  Node.js          v24.14.0

Used Package Manager

pnpm

Logs

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Target date

    None yet

    Start date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions