Skip to content

vp create generated repository excludes .vscode/settings.json from git version control #1641

@ZiuChen

Description

@ZiuChen

Describe the bug

Description

When initializing a new project using vp create, the generated .vscode/settings.json file is not tracked by Git (or is being ignored). This prevents the team from sharing consistent IDE configurations (like the oxc formatter) across the project, which is critical for consistent code formatting.

Expected Behavior

The .vscode/settings.json file should be committed to the repository so that all contributors share the same editor settings.

Actual Behavior

The .vscode/settings.json file is ignored (or not added) in the initial commit, causing inconsistency in formatter settings among team members.

Additional Context

I believe this might be an issue with the .gitignore configuration in the project template or a missing step in the generation process. Ensuring this file is tracked will greatly improve the DX for teams.

Reproduction

Steps to reproduce

  1. Run vp create (please specify the template you used).
  2. Check if .vscode/settings.json exists in the repository.
  3. Check git status or .gitignore to see if the file is ignored.
  4. Verify that the file is not being tracked by Git.

System Info

VITE+ - The Unified Toolchain for the Web

Environment:
  Version       24.15.0
  Source        engines.node
  Source Path   /Users/ziu/Programs/livephotomaker/package.json
  Project Root  /Users/ziu/Programs/livephotomaker

Tool Paths:
  node  /Users/ziu/.vite-plus/js_runtime/node/24.15.0/bin/node
  npm   /Users/ziu/.vite-plus/js_runtime/node/24.15.0/bin/npm
  npx   /Users/ziu/.vite-plus/js_runtime/node/24.15.0/bin/npx

Used Package Manager

pnpm

Logs

-

Validations

Metadata

Metadata

Assignees

Type

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