Skip to content

Add .vscode/ to .gitignore (sister concern from #2) #4

Description

@kiki830621

Problem

.vscode/ 在 work tree 裡是 untracked,且不在 .gitignore 中,所以每次 git status 都會把它
列為未追蹤檔案:

?? .vscode/

它是編輯器的本機設定,不屬於這個 repo 的產物。留著會有兩個後果:git status 永遠有一行雜訊
(真正該注意的未追蹤檔案容易被淹沒),以及某次 git add -A 會把個人編輯器設定意外推上去。

Type

chore

Expected

.gitignore 加一行 .vscode/git status 在乾淨的 work tree 上輸出乾淨。

若日後決定要共享部分 VS Code 設定(例如 extensions.json 推薦清單),再用 ! 反向 un-ignore
個別檔案。

Actual

.gitignore 沒有 .vscode/ 規則,該目錄以 untracked 狀態常駐。

Impact

Source: surfaced during /idd-diagnose #2 sister concern surfacing (Step 3.6)

Clarity Surface

Type Source Question for you Status
(none) no issues detected passed

Current Status

Phase: verified
Last updated: 2026-09-01 by idd-all (direct-commit, attended)

Key Decisions

  • Issue premise was already false: .vscode/launch.json was committed in f1f1a27 (a Usage 1 needs a command you can just type, not a file you copy #2 commit) — the git add -A accident this issue was filed to prevent had already happened
  • launch.json kept deliberately (portable: only ${workspaceFolder:...} + repo targets); pattern per the issue's own ! prescription
  • First implementation was inert.vscode/ excludes the directory so the ! never evaluates; fixed to .vscode/*. Proven in a scratch repo, not by reading

Scope Changes

  • One line → one block, because the ignore alone would not have addressed the tracked file

Blocking

  • (none) — verified, awaiting close

Commits

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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