Skip to content

Add full workspace reference index#186

Open
sidux wants to merge 4 commits into
PHPantom-dev:mainfrom
sidux:feat/full-workspace-reference-index
Open

Add full workspace reference index#186
sidux wants to merge 4 commits into
PHPantom-dev:mainfrom
sidux:feat/full-workspace-reference-index

Conversation

@sidux

@sidux sidux commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a full workspace indexing mode that builds complete symbol maps and a cross-file reference candidate index in the background. Full indexing is now the default strategy, so new/missing config uses strategy = "full" automatically. Users can still opt into lighter modes with strategy = "composer", "self", or "none".

Key changes:

  • Make indexing.strategy = "full" the default in config/schema/docs.
  • Start a background full workspace index after normal initialization.
  • Add a reference index keyed by classes, functions, constants, members, and Laravel string keys.
  • Use full-index data broadly where it is available:
    • class, function, constant, member, constructor, Laravel-string references now snapshot only reference-index candidate files instead of snapshotting all user files and filtering afterward.
    • rename benefits through the same reference engine.
    • go-to-implementation and type-hierarchy subtype lookups use the reverse inheritance index (gti_index) once workspace indexing is ready.
  • Batch workspace parsing and index publication to avoid thousands of per-file lock/update cycles.
  • Use weighted, largest-first progress reporting so large files do not create a misleading late tail.
  • Bulk-evict reference-index batches in one pass

@codecov-commenter

codecov-commenter commented Jul 3, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 96.92005% with 47 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/references/mod.rs 93.90% 43 Missing ⚠️
src/parser/ast_update.rs 98.49% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@sidux sidux force-pushed the feat/full-workspace-reference-index branch 3 times, most recently from 07a2ce1 to 74aaa7a Compare July 3, 2026 12:17
@sidux sidux force-pushed the feat/full-workspace-reference-index branch from 74aaa7a to 586166f Compare July 3, 2026 12:40
@sidux sidux force-pushed the feat/full-workspace-reference-index branch from a0d2b4f to 19fffd4 Compare July 3, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants