Skip to content

fix(ide): apply manifest predefines to navigation#142

Merged
hongjr03 merged 1 commit into
masterfrom
fix/manifest-macros-ide-state
May 25, 2026
Merged

fix(ide): apply manifest predefines to navigation#142
hongjr03 merged 1 commit into
masterfrom
fix/manifest-macros-ide-state

Conversation

@hongjr03
Copy link
Copy Markdown
Member

@hongjr03 hongjr03 commented May 25, 2026

Manifest defines already fed compilation diagnostics and include discovery, but editor features that rely on the ordinary parse path still used an empty preprocessor configuration. This change stores the resolved preprocess config per file when project state is applied, then uses it for both IDE parsing and the default preprocessor index so ifdef-selected branches, goto definition, and reference search share the same manifest macro state. Validation: cargo fmt --all -- --check; cargo check -p ide; cargo test -p ide manifest_predefines -- --nocapture; cargo test -p base-db preprocessor_index_honors_predefined_conditional_includes -- --nocapture; cargo test -p ide parsed_file_nodes_survive_parse_lru_eviction -- --nocapture; git diff --check.

@hongjr03 hongjr03 marked this pull request as ready for review May 25, 2026 18:24
@hongjr03 hongjr03 merged commit 1f13652 into master May 25, 2026
7 checks passed
@hongjr03 hongjr03 deleted the fix/manifest-macros-ide-state branch May 25, 2026 18:24
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.

1 participant