Skip to content

feat: add formatted output, shared modules, and richer VAS IDE editing - #18

Merged
Aceared0829 merged 14 commits into
masterfrom
codex/vas-format-modules-ide
Oct 4, 2026
Merged

Aceared0829 merged 14 commits into
masterfrom
codex/vas-format-modules-ide

Conversation

@Aceared0829

@Aceared0829 Aceared0829 commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

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 as println("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

  1. Core format validation metadata, host configuration round-trip and primitive string allocation reductions.
  2. Compiler/runner output registration and shared module/macro preprocessing, including native regressions and module examples.
  3. Epic-style nine-file arena example, deterministic self-checks and benchmark script.
  4. Rider plugin implementation, real Solution Host fixtures and tests.
  5. VS Code language/editing services and native Extension Host integration scenarios.
  6. Visual Studio 2026 services, native VS18 editor tests and package validation.
  7. Synchronized Windows runtime binaries, CI configuration and three-IDE setup/capability documentation.

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

  • Release native CTest: 29/29 passed, covering output, format errors, configuration metadata, modules/macros, arena output, Unicode paths and JSONL/source proofs.
  • VS Code tests with the real compiler: 219 passed, 18 platform-specific skips, 0 failures. Native editor checks verify five pairs, closing skip/backspace, function completion, parameter help, error clearing and unsaved imports.
  • Rider full local suite: 271 passed, 1 Windows-specific platform skip, 0 failures, including actual Solution Host Find Usages, caller navigation and rename/undo. The earlier focused index/language/diagnostics run passed all 153 cases.
  • Visual Studio 2026: 212 core assertions and 9/9 native EditorTests passed; package and validation gates passed. Both new editor cases are required by the result validator.
  • Complete native VS18 CI on the corrected head: 29/29 passed, 0 skips, including the Unicode/metacharacter case. All required project evidence and exact package-payload gates passed.
  • Real local VS Code 1.139.1 Extension Host validation passed all nine legacy modes plus both new language and editing scenarios.
  • Tracked compiler copies match the built Release compiler SHA-256. Generated deployment workspaces and local user edits remain outside the commit set.
  • CI now supplies Rider's native interface configuration and runs both VS Code language/editing Extension Host scenarios.

Performance and compatibility

  • Allocation regressions require no increase in integer-concatenation allocations; measurements show a reduction on MSVC, while libc++ may match the baseline because of its larger small-string buffer. The measured small format construction path performs zero allocations; I/O and large overflow buffers are excluded.
  • Rider's measured 1500-function declaration scan improved from 413.12 ms to 16.10 ms. This measures scanning, not IDE startup or rendering; timing is informational rather than a CI threshold.
  • The public AngelScript function interface gains opt-in validator metadata. Embedding hosts must rebuild against this interface. Checks follow marked host functions rather than function names.
  • Literal format strings are checked at compilation; dynamic strings are checked during execution. Literal braces in formatted string output require {{ / }} escaping. Concatenation retains prior locale/numeric behavior.
  • Import deduplicates normalized section paths; it does not resolve physical identity across symlinks or hard links. Import does not create an implicit namespace. Macro visibility is intentionally transitive; namespace declarations remain explicit. Complex expressions, inheritance and conditional macro bindings still rely on the compiler for authoritative semantics.
  • Vendored fmt 11.2.0 carries its license and source attribution. Visual Studio SDK/threading analyzer warnings in editor task/thread annotations and synchronous test-fixture writes remain visible in the CI logs; native host tests and package gates pass with these warnings.

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/ and out/verification/ide/; generated deployments and user edits are excluded from this PR.

…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.
Copilot AI balanced review requested due to automatic review settings October 4, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.
@Aceared0829

Copy link
Copy Markdown
Owner Author

Code review pass 1 and follow-up verification

This 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:

  • P1: stale synthetic package identities in tools/ide-artifacts/test_stage.py. Old Rider/VS Code versions caused every IDE CI job to fail during staging regression validation. Fixed in 68e76db by deriving fixture identities from production metadata; all 12 staging cases pass and production payload/hash gates remain strict.
  • P2: invalid MinGW reference benchmark path in tests/vasbuild/test_module_performance.cpp. The reference SDK interpreted the relative fixture directory beneath the executable. Fixed in 948b9e6 with the native absolute-path utility; rebuilt Release benchmark passed. MinGW CI is required for the original platform.
  • P2: case-insensitive diagnostic publication on Linux in tools/vscode-extension/src/liveDiagnostics.js. Case-distinct imported files could contaminate the entry document's diagnostics. Fixed in 82c1006 with platform-correct comparison and an added Linux input in the existing native editing scenario.

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.
@Aceared0829

Copy link
Copy Markdown
Owner Author

Code review pass 2: native ABI and editor-process boundaries

Fresh cross-platform CI exposed and verified the following additional findings:

  • P1: signed int8/int16 output on Apple ARM64. Native CDECL argument extension produced positive values. Fixed in d549526 by reading narrow script values through generic value storage; rebuilt primitive output, println and allocation tests pass locally. All tracked runner copies were synchronized.
  • P2: nonportable allocation expectation. libc++ fits the previous 20-byte numeric temporary into its larger small-string buffer, making the old/new allocation counts equal. The benchmark now rejects allocation increases rather than assuming every standard library allocates; inline format construction must still allocate zero times. Printed timing/allocation measurements are retained.
  • P2: live compilation contaminating legacy command audits. Fixed in 630be67 by disabling background compilation in those audit profiles only. Dedicated language/editing host scenarios continue testing it enabled; production settings are unchanged.
  • P2: locationless import-failure summaries marked as source errors. Fixed in 630be67 by requiring positive row/column before editor publication. The Linux case-distinct imported-error regression remains intact and covers the combined boundary.

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.

@Aceared0829 Aceared0829 changed the title feat: add formatted output, shared modules, and complete VAS IDE editing feat: add formatted output, shared modules, and richer VAS IDE editing Oct 4, 2026
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.
@Aceared0829

Copy link
Copy Markdown
Owner Author

Code review pass 3: public validator registration contract

P2: primitive format signatures accepted before string registration. SetFormatStringValidator compared null type-info pointers when the host had not registered a string factory. That incorrectly admitted an integer first parameter. Fixed in 4e53289 by requiring an initialized string type before the signature match; the existing compiler-contract regression now checks this boundary.

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.
@Aceared0829

Copy link
Copy Markdown
Owner Author

Code review pass 4: final native VS18 regression

P2: reflection invocation retained the old NativeProcess arity. The complete native VS18 CI run passed 28/29 cases, including all new editing/navigation scenarios, but CompilerArgumentsPreserveUnicodeAndMetacharacters invoked the updated helper with eight arguments instead of nine. Fixed in 60cf715 by supplying the optional environment argument explicitly. All Unicode/metacharacter, stderr and exit-code assertions remain unchanged.

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.

@Aceared0829

Copy link
Copy Markdown
Owner Author

Final author review and merge gate

Reviewed 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.

@Aceared0829
Aceared0829 merged commit 0033c4c into master Oct 4, 2026
22 checks passed
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