Skip to content

Detect breakpoint changes, and stop calling an unknown a no - #80

Merged
Seungpyo1007 merged 1 commit into
developfrom
fix/bp-change-and-ref-unknown
Aug 10, 2026
Merged

Detect breakpoint changes, and stop calling an unknown a no#80
Seungpyo1007 merged 1 commit into
developfrom
fix/bp-change-and-ref-unknown

Conversation

@Seungpyo1007

Copy link
Copy Markdown
Member

Two defects in code written earlier today, both from this session's recurring family.

Breakpoint changes compared by count

setDebugState compared the breakpoint list by length. Turning one off and another on keeps the length identical, so no change event fired and extensions kept trusting the old list — marking the wrong lines.

Now compared by a fingerprint built from the positions. Extracted to src/engine/bpKey.ts with tests, including the equal-length case that motivated it.

"Could not ask" reported as "no references"

find_references answered 참조 없음(정의만 있음) even when the TS worker query failed or the worker was not up yet. A model reads that as dead code and deletes it.

The answer now distinguishes the two: when the lookup did not actually happen it says so and tells the model not to conclude anything, pointing at search_files instead.

1108 unit tests passing (6 new). npm run typecheck and npm run build clean.

방금 만든 코드에서 둘 나옴.

setDebugState 가 중단점 목록을 길이로 비교했다. 하나 끄고 하나 켜면 길이가
같아서 사건이 안 나가고, 확장은 옛 목록 그대로 믿는다. 자리로 지문 만들어
비교하게 함. bpKey 로 빼서 테스트.

find_references 가 워커 조회에 실패해도 "참조 없음(정의만 있음)" 이라고
답했다. 모델이 그걸 안 쓰는 코드로 읽고 지운다. asked 로 구분해서 못 물어본
경우엔 단정하지 말라고 답한다.
@Seungpyo1007 Seungpyo1007 added this to the v0.3 (2026-09-30) milestone Aug 10, 2026
@Seungpyo1007 Seungpyo1007 added the bug Something isn't working label Aug 10, 2026
@Seungpyo1007 Seungpyo1007 self-assigned this Aug 10, 2026
@Seungpyo1007
Seungpyo1007 merged commit c4797ff into develop Aug 10, 2026
1 check passed
@Seungpyo1007
Seungpyo1007 deleted the fix/bp-change-and-ref-unknown branch August 10, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant