Skip to content

Review Panel sometimes adds the entire source tree after enable or refresh state #22

@honggiang17tb

Description

@honggiang17tb

Summary

Sometimes right after enabling Hunkwise, or after clicking Refresh State, the Review Panel suddenly shows almost all files in the workspace/source tree as pending review, even though those files were not externally modified.

Steps to reproduce

I cannot reproduce it 100% reliably yet, but the pattern is:

  1. Open the workspace
  2. Enable Hunkwise
    • or click Refresh State
  3. Wait for the extension to rebuild its state
  4. Review Panel unexpectedly lists a large number of existing source files for review

Expected behavior

Only files that were actually changed externally should appear in the Review Panel.

Actual behavior

A very large set of normal source files gets added to the Review Panel as if they were pending external changes.

Notes

  • This seems to happen during initial enable / state rebuild rather than after a normal targeted file edit.
  • It looks like the extension may sometimes treat already-existing workspace files as newly detected review items when rebuilding state.

Environment

  • VS Code: latest
  • Hunkwise version: 0.0.29
  • OS: windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions