Skip to content

Commit e71027f

Browse files
committed
OX-02 P14: prove the extension loaded from its own trace, not the module list
The run on a28c958 (MEF cache rebuilt) shows Owen.VisualStudio composed in the IDE and working: its trace has 'Owen live analysis loaded', a workspace snapshot with the unsaved Use.cs and Roslyn's in-memory generated documents, and publication 1 of the project with no entries (K1). Only the driver's check was wrong: a .NET Framework assembly is not reliably among Process.Modules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ZFvhLx1fM9Gerg4dKsZcL
1 parent a28c958 commit e71027f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎scripts/vs/owen-vs-acceptance.ps1‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,15 @@ Retry { $window.Activate() } | Out-Null
175175
Retry { $window.Visible = $true } | Out-Null
176176
$doc = Retry { $dte.ActiveDocument }
177177
Log "active document: $($doc.FullName)"
178+
# The extension's own word that its MEF parts were composed and its monitor runs (a .NET
179+
# Framework assembly does not reliably show among the process's native modules).
178180
$loaded = $null
179-
for ($k = 0; $k -lt 60 -and -not $loaded; $k++) {
180-
try { $loaded = @((Get-Process -Id $proc.Id).Modules | Where-Object { $_.FileName -like '*Owen.VisualStudio.dll' })[0] } catch { }
181+
for ($k = 0; $k -lt 120 -and -not $loaded; $k++) {
182+
if (Test-Path $trace) { $loaded = Select-String -Path $trace -Pattern '"Owen live analysis loaded"' -SimpleMatch -List }
181183
if (-not $loaded) { Start-Sleep -Seconds 1 }
182184
}
183185
if (-not $loaded) { Collect-Diagnostics }
184-
Check "vsix-loaded" ($null -ne $loaded) "Owen.VisualStudio.dll in devenv: $(if ($loaded) { $loaded.FileName } else { 'not loaded' })"
186+
Check "vsix-loaded" ($null -ne $loaded) "Owen.VisualStudio composed in devenv: $(if ($loaded) { $loaded.Line } else { 'no load line in the trace after 120 s' })"
185187
Shot "opened"
186188
if (-not $loaded) {
187189
# nothing below can pass without the extension in the process: stop with the evidence

0 commit comments

Comments
 (0)