Repository navigation
copilot: append the Copilot shim to the terminal PATH - #338931
Merged
Karthik Nadig (karthiknadig) merged 1 commit intoSep 30, 2026
Merged
Karthik Nadig (karthiknadig) merged 1 commit into
Karthik Nadig (karthiknadig) merged 1 commit into
Conversation
The extension had switched to prepending the shim's folder to the integrated terminal PATH, so the shim came before the user's own PATH. Append it again, as Windows setup does, so a Copilot CLI already on PATH is found first. Co-authored-by: Copilot <[email protected]>
Karthik Nadig (karthiknadig)
requested a review
from Don Jayamanne (DonJayamanne)
September 30, 2026 16:36
Don Jayamanne (DonJayamanne)
approved these changes
Sep 30, 2026
Ben Villalobos (benvillalobos)
approved these changes
Sep 30, 2026
Karthik Nadig (karthiknadig)
merged commit Sep 30, 2026
781767e
into
packaging/vscode-with-copilot
3 checks passed
Karthik Nadig (karthiknadig)
deleted the
karthiknadig/copilot-shim-append-path
branch
September 30, 2026 20:51
This was referenced Sep 30, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
b284dd5b991changed the extension to put the Copilot shim's folder at the front of the integrated terminalPATH(contributePath(..., true)). The shim then came before the user's ownPATHin every integrated terminal.Change
PATHagain, the same way Windows setup appends{app}\bin\copilot-shimto the userPATH.PATHis found by the shell directly.copilotonly when nothing else onPATHdoes.REQUIREMENTS.mdnow says the folder is appended.Merging with #338927
#338927, which makes the extension use the shipped shim, is independent of this PR. I merged both branches locally: they merge cleanly and the specs pass (40 tests).
Validation
copilotCLITerminalIntegration.spec.tspasses (27 tests).tsc --noEmit -p extensions/copilot/tsconfig.jsonandeslintpass on the changed files.