Repository navigation
feat: add formatted output, shared modules, and richer VAS IDE editing - #18
Conversation
…ions Add opt-in native format validation metadata and preserve it through host configuration export/import. Check literal formats and argument types at compilation, while dynamic formats retain runtime validation. Keep primitive concatenation locale and numeric behavior while reducing temporary allocations. Vendor fmt 11.2.0 headers with attribution and allocation regression coverage. Compatibility: the public engine interface is extended; embedding hosts must rebuild. Validation: Release native CTest suite passed 29/29, including format allocation and metadata checks.
…sing Register primitive print/println overloads and format-aware variadic calls in the compiler and runner. Resolve import and quoted/angle includes through a shared dependency loader, export imported macros transitively, deduplicate physical files, and map diagnostics back to original sources. Bound expansion and report ambiguous modules. Document format escaping, runtime checks, macro scope and namespace boundaries. Validation: Release CTest passed all 29 cases, including native module, output, Unicode and allocation checks.
Add a nine-file arena example covering modules, macros, classes, enums, handles, arrays and formatted output using Epic-style naming. Provide deterministic battle batches, 23 self-checks, expected quiet output and a PowerShell benchmark script. Validation: native vas_arena_example passed; compiler and runner outputs agree.
Ship Rider plugin 0.5.9 with cached dependency indexing, imported macro visibility, symbol completion, parameter help and semantic colors. Add native delimiter pairing, backspace/enter behavior and live compiler diagnostics over unsaved dependency snapshots. Restore Find Usages, Code Vision and caller/callee discovery in macro-containing modules without weakening rename ambiguity guards. Include real Rider Solution Host fixtures and typing/navigation tests. Validation: 153 targeted Rider index, language and diagnostics tests passed, including actual arena Find Usages and rename/undo. Index benchmark: 1500-function scan reduced from 413.12 ms to 16.10 ms.
Ship VS Code extension 0.3.0 with dependency-aware definitions, macros, completions, hover, symbols and semantic tokens. Use native completion snippets and signature help; add delimiter editing and immediate structural errors. Compile unsaved dependency snapshots after debounce using the trusted application-level compiler. Run language and editing scenarios in the native Extension Host integration runner, and retain installed README byte parity. Validation: 219 unit cases passed with the native compiler (18 platform-specific skips); actual VS Code editor assertions passed for typing, completion, parameters, diagnostics and unsaved imports.
Ship Visual Studio 2026 extension 0.3.0 with module-aware completion/navigation, parameter help, semantic coloring and structural diagnostics. Add opt-in background compilation over unsaved dependencies and native completion commit/caret behavior. Reuse the canonical VS Code grammar and editor configuration in the packaged VSIX. Require both new native editor cases in the VS18 result gate. Validation: 212 core assertions, 9/9 native VS18 EditorTests and package/regression gates passed. Existing SDK/threading analyzer warnings remain documented.
…ance Update all tracked Windows toolchain copies and document the three IDE capability matrix, setup, live diagnostics and remaining semantic limits. Provide the host configuration to Rider CI so the real unsaved-module diagnostic test cannot skip because of missing environment setup. Compatibility: native embedding hosts must rebuild; format-string literal braces require escaping; full compiler semantics remain authoritative for complex expressions and conditional macros. Validation: native Release CTest 29/29 and synchronized toolchain/configuration delivery checks. Generated deployment outputs and user workspace edits remain ignored.
The shared delivery tests synthesized Rider 0.5.6 and VS Code 0.1.0 packages while production metadata had advanced to 0.5.9 and 0.3.0. All IDE jobs consequently failed before compiling the extensions. Read production versions when constructing the synthetic package descriptors and expected identities. Retain exact payload, source parity, version consistency and dependency allowlist enforcement. Validation: all 12 artifact staging regression tests passed. Review finding: P1 stale release fixture identities resolved; no production validator was relaxed.
The upstream reference builder resolves MinGW relative paths beneath the executable instead of the test working directory. The new module benchmark consequently failed before any comparison, although the production module regressions passed. Resolve the fixture directory with the production native path utility and give both loaders identical absolute inputs. Keep semantic, read-count, cache reset and bytecode assertions intact. Validation: rebuilt Release benchmark target and vas_module_performance passed. MinGW CI will verify the original failing platform.
Live diagnostics folded every filename to lower case, so errors in a distinct imported Editor.vas could be published on editor.vas on Linux. Fold filenames only on Windows and compare exact resolved paths elsewhere. Extend the existing native editing scenario with the case-distinct import regression. Validation: syntax checks pass; Linux native Extension Host CI covers the case-sensitive publication boundary. Existing unsaved-source and stale-generation guards remain intact.
Code review pass 1 and follow-up verificationThis is the author's source/test review; Copilot's requested review did not execute because its review quota was exhausted. No external approval is claimed. Resolved findings:
Pre-PR review also repaired missing native editing-test wiring, Rider's missing CI interface config, required VS18 editor-case validation and README package parity. Final CI is running on the follow-up head. Local evidence: native 29/29, Rider full suite 271 passed / 1 platform skip / 0 failures, VS Code real-compiler unit suite 219 passed / 18 platform skips, VS18 9/9 native editor tests and 212 core assertions, delivery validator 12/12, VS validator 27/27. Literal parentheses, dynamic strings, concatenation and conditional formats were checked against the native compiler during review; direct literals are checked and dynamic expressions retain runtime validation as documented. Pass 2 focuses on the repaired source boundaries and fresh cross-platform CI; merge remains gated on passing checks. |
Apple ARM64 native argument extension caused int8/int16 primitive output callbacks to receive positive representations of negative script values. Formatted variadic output already read the script storage correctly. Read narrow primitive arguments through the generic API's value storage and preserve numeric widening inside the output callback. Update shipped runner copies to the rebuilt Release executable. Allow integer concatenation allocation equality when libc++ keeps the previous 20-byte conversion in its larger small-string buffer; still reject allocation regressions and require zero allocation in the measured inline formatting path. Validation: rebuilt vasrun and allocation target; vas_print_primitives, vas_println and vas_format_performance all passed on MSVC. Apple ARM64 CI is required for the original failing ABI.
Background compilation was enabled in the existing project-command audit hosts, so live editing processes invalidated their zero-passive-descriptor assertions. Imported-file failures also produced a locationless build summary that was incorrectly drawn at the start of the entry document. Disable live compilation only in command-audit profiles; the separate native editing profiles keep it enabled. Publish source diagnostics only with positive row/column positions. Preserve the Linux case-distinct module regression unchanged. Validation: syntax checks pass. Fresh native Extension Host CI must verify command cancellation, unsaved-source diagnostics and case-sensitive publication together.
Code review pass 2: native ABI and editor-process boundariesFresh cross-platform CI exposed and verified the following additional findings:
These are targeted fixes; no CI job, payload validator or semantic assertion was bypassed. Final head: 630be67. Final review is waiting for fresh macOS/Linux/Windows native results and IDE package gates before merge. |
The format-validator signature check compared type-info pointers. Without a registered string factory, both the expected string type and an integer parameter had null type-info pointers, so an invalid primitive signature was accepted. Require an initialized string type before attaching validator metadata. Extend the existing native compiler-contract regression with the no-string-factory case and synchronize all tracked compiler/runner copies with the rebuilt engine. Validation: clean Release rebuild and full native CTest passed 29/29. The added registration boundary rejects the primitive signature while valid string metadata export/import continues to pass.
Code review pass 3: public validator registration contractP2: primitive format signatures accepted before string registration. A full Release rebuild and native CTest 29/29 passed, including the new boundary and existing valid format metadata round-trip. All six tracked compiler/runner copies were refreshed. Final CI is running on 4e53289; the preceding head already passed all six Linux/macOS/Windows VS Code jobs, including the Apple ARM64 and Linux case-sensitive regressions. Source review of the repaired registration, value-storage, source-position and package-identity boundaries found no further actionable findings. Final merge remains gated on the new head's native and IDE checks. |
The native process helper gained an optional environment parameter for live compiler snapshots. The existing VS18 Unicode argv test invoked the helper through reflection with only the previous eight arguments, producing TargetParameterCountException before process launch. Supply the ninth null argument in the reflection helper. Keep the native wide-argv, literal metacharacter, stderr separation and exit-code assertions unchanged. Validation: the preceding native VS18 run passed 28 of 29 cases, including both new editor scenarios; only this reflection invocation failed. The corrected test is required by the fresh VS18 host and result gates.
Code review pass 4: final native VS18 regressionP2: reflection invocation retained the old NativeProcess arity. The complete native VS18 CI run passed 28/29 cases, including all new editing/navigation scenarios, but The host-test assembly builds successfully. The failing case is being exercised in a real local VS18 host and the complete CI suite is running on the corrected head. The previous head's Rider and six VS Code matrix jobs all passed. No production behavior, test requirement or result gate was weakened. |
Final author review and merge gateReviewed head: 60cf715. All 22 applicable CI checks passed on this exact head. The complete VS18 host suite passed 29/29 with no skips, including the previously failing Unicode/metacharacter case. Rider completed its real Solution Host tests and package/evidence gates; the VS Code matrix and native platform jobs passed. Four author source-review passes and seven follow-up fix commits resolved the recorded findings. The final reflection-call fix was also verified independently of CI in the actual local VS18 host. No remaining actionable findings were identified within the reviewed change set. The PR description records normalized-path module deduplication, platform-specific allocation results, native interface compatibility, remaining IDE semantic limits, and visible VS SDK/threading analyzer warnings. Generated deployment output and user workspace edits are excluded. Earlier commit wording referring to physical-file deduplication is clarified by the actual normalized-section-path semantics in the final description and documentation. Copilot could not review because its quota was exhausted. This is an author self-review with actual test evidence, not an independent reviewer approval. Merge with a merge commit to preserve all 14 logical commits. |
Problem and resulting behavior
VAS previously rejected direct numeric output, offered no newline/format-aware output, and exposed incomplete module semantics and IDE editing services. Rider Find Usages could report no references for functions in macro-containing imported modules.
This change supports
print(Result),println(Result),println()and typed formatting such asprintln("ABC + {} ASDA", Result). String concatenation remains supported.import Arena.Demo;, quoted includes and angle includes share dependency loading and macro visibility; every macro defined by an imported file is visible transitively.Rider 0.5.9, VS Code 0.3.0 and Visual Studio 2026 0.3.0 add dependency-aware completion/navigation, macro indexing, semantic colors, function/parameter help, delimiter editing and unsaved-source diagnostics. Rider gains native Find Usages and usage/caller counts through macro-containing modules while retaining conservative rename preflight.
Commit organization
Seven follow-up review commits fix version-dependent CI fixtures, portable benchmark paths, case-sensitive diagnostic source identities, signed narrow-integer output on Apple ARM64, diagnostic-process isolation and locationless summaries, validator registration before the string type exists, and a VS18 reflection-test argument mismatch. The PR contains 14 commits; a merge commit will retain these logical batches.
Validation
Performance and compatibility
{{/}}escaping. Concatenation retains prior locale/numeric behavior.Review and merge
Four author source-review passes covered the compiler contract, dependency/macro boundaries, unsaved-document publication, ambiguous symbol handling, platform-specific calling conventions and package parity. Findings were fixed and re-reviewed in the seven follow-up commits above. Copilot could not perform a review because its quota was exhausted; no independent reviewer approval is claimed.
All 22 applicable CI checks passed on 60cf715, including the complete Rider Solution Host suite/package gates, VS Code matrix, native platform jobs, and VS18 host suite. No remaining actionable findings were identified within the reviewed change set. Merge with a merge commit to preserve the logical commit batches.
Generated evidence is retained locally under
out/verification/pr/andout/verification/ide/; generated deployments and user edits are excluded from this PR.