Index audio and texture assets - #57
Merged
Merged
Conversation
|
| Filename | Overview |
|---|---|
| crates/analysis/src/diagnostics.rs | Adds gated missing-audio and missing-texture warnings tied to indexed asset availability, with extension and DDS alias handling. |
| crates/analysis/src/completion.rs | Adds asset-backed completion labels and snippets for audio files/stems and texture files/stems, including DDS-to-TGA canonical texture completion. |
| crates/analysis/src/index.rs | Extends the workspace index with case-insensitive raw audio/texture asset tracking and generation updates when effective names change. |
| crates/server/src/scan.rs | Adds WAV/MP3/TGA/DDS discovery from loose files and BIG archives without reading raw binary payloads except existing W3D model parsing. |
| crates/server/src/backend.rs | Wires scanned raw assets into the shared workspace index and scan progress accounting. |
| crates/server/src/cli.rs | Indexes scanned raw assets for one-shot CLI diagnostics and updates CLI base-root help text. |
| crates/schema/schema.json | Marks relevant schema fields and sub-blocks with the new audio/texture value types so analysis can provide asset-specific behavior. |
Reviews (1): Last reviewed commit: "Index audio and texture assets" | Re-trigger Greptile
ViTeXFTW
marked this pull request as ready for review
July 18, 2026 13:44
# Conflicts: # crates/analysis/src/completion.rs # crates/analysis/src/diagnostics.rs # crates/analysis/src/index.rs # crates/analysis/src/semantic.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Raw audio and texture references were previously plain strings, so the language server could neither complete them nor warn when an indexed asset was missing. The scanner also ignored those file types.
Impact
Configured game and mod roots now provide context-aware asset completion and existence checks without reading binary payloads or adding raw assets to navigation, rename, or definition flows. DDS-backed textures complete canonically as TGA references where the engine supports transparent lookup.
Validation
cargo test -p zerosyntax-schemacargo test -p zerosyntax-analysis --test speccargo testcargo test --release -p zerosyntax-analysis --test corpus -- --ignored --nocapture