Skip to content

Stop reporting a skipped index as an unsupported language - #81

Merged
Seungpyo1007 merged 1 commit into
developfrom
fix/symbol-index-unknowns
Aug 10, 2026
Merged

Stop reporting a skipped index as an unsupported language#81
Seungpyo1007 merged 1 commit into
developfrom
fix/symbol-index-unknowns

Conversation

@Seungpyo1007

Copy link
Copy Markdown
Member

Three more of the same shape as #80 — reporting an unknown as a no.

A large TypeScript project answered "not a TypeScript project"

projectModels.preload is all-or-nothing: past 500 TS files it creates zero models and returns. find_symbol then sees no models, concludes there is no index, and answers "이 워크스페이스에는 심볼 색인이 없습니다(TypeScript 프로젝트가 아니거나 해당 언어 서버가 없음)".

That is false, and it is the worst kind of false — a model reads it as "this language isn't supported here" and does not even fall back to search_files. Reproduced with a 600-file project.

The two states are now distinguished: not built (too many files, with the limit named) versus not applicable. find_references hits the same wall and got the same treatment.

capped was computed and never used

find_symbol scans at most 400 models and already returned a capped flag saying it stopped early. The answer ignored it, so a partial scan was reported as "no such symbol".

Verification

Real app with 600 TS files, 4/4: preload does skip, the skip is visible as tooBig, and the sources list is empty — so the answer takes the "not built" branch rather than the "not supported" one.

1108 unit tests passing. npm run typecheck and npm run build clean.

A probe note: reading isPreloadSkipped() through a separate import() returned false while the app's own path returned true — a second module instance with empty state. The probe now reads through symbolIndex, the same path the app uses.

preload 는 TS 파일이 500개 넘으면 모델을 하나도 안 만들고 끝낸다(전부-아니면-
전무). 그러면 find_symbol 이 "이 워크스페이스에는 심볼 색인이 없습니다
(TypeScript 프로젝트가 아니거나 …)" 라고 답한다. 600개짜리로 재현함.

모델은 그 말을 믿고 grep 도 안 해본다. 안 만든 것과 지원 안 하는 것을 갈라서
말하게 함. find_references 도 같은 벽이라 함께.

find_symbol 이 capped 를 계산해놓고 답에 안 쓰고 있던 것도 같이. 400개까지만
훑는데 훑다 만 걸 "없음" 으로 답했다.
@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 b52ade4 into develop Aug 10, 2026
1 check passed
@Seungpyo1007
Seungpyo1007 deleted the fix/symbol-index-unknowns branch August 10, 2026 05:56
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