Repository navigation
test(hoosage): make extension host tests pass on Windows - #54
Merged
Merged
Conversation
npm run test:extension failed on every run: - Project IDs were built with Node's pathToFileURL (file:///C:/...), but VS Code hashes file:///c%3A/... on Windows. Build URIs like VS Code. - VS Code does not load its built-in Copilot extension in a test host, so the Copilot OTel settings were missing and status stayed blocked. Load the bundled copy as a development extension; COPILOT_EXTENSION_PATH still overrides it. - getSnapshot could return a refresh that started before the caller's last write. It now always waits for a refresh started after the call. - The recovery test scanned the machine's real Copilot CLI and WSL sessions. Both tests now use an isolated COPILOT_HOME and skip WSL. Also ignore the .vscode-test download folder. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
wakemeup0
added a commit
that referenced
this pull request
Oct 7, 2026
## 0.14.1 (2026-10-07) ### Bug Fixes - **hoosage:** repair usage accounting and polish editor dashboards (#56) (d83c3e7) ### Other Changes - **hoosage:** make extension host tests pass on Windows (#54) (d83f301) - **hoosage:** add contributor and user agent skills (#55) (b5dac04) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
npm run test:extensionfailed on every run on Windows. The main smoke test also failed on current VS Code on any OS. Not part of CI.Causes and fixes
pathToFileURL(file:///C:/…), but VS Code hashesfile:///c%3A/….vscodeFileUri()inscripts/extension-test-support.mjsbuilds URIs the way VS Code'sURI.file().toString()does.blockedgithub.copilot.chat.otel.*was not registered.resources/app/extensions/copilot) as a development extension.COPILOT_EXTENSION_PATHstill overrides it.getSnapshot(the test-only API) returned any refresh already in flight, even if it started before the caller's POST.undefined !== 42).~/.copilotsessions, and both tests read WSL sessions.COPILOT_HOMEand sethoosage.readWslCliSessions: false.Also ignores the
.vscode-test/download folder.vscealready excludes it from the VSIX.Verification (Windows)
npm run test:extensionpasses all four runs (main + 3 recovery scenarios), both on Insiders 1.140.0 and on stable 1.139.1 viaVSCODE_EXECUTABLE.npm run checkpasses: 80/80 tests, typecheck, build and calendar UI.