Open the actual workspace file behind GitHub Copilot change previews.
When a supported Copilot preview is active, use Copilot Preview: Open Actual File for Preview from the command palette, editor title, or editor context menu to jump from the preview model back to the actual file on disk.
- Opens the actual file behind supported GitHub Copilot preview resources.
- Adds an editor title action when a supported preview is active.
- Adds an editor context menu action for supported previews.
- Includes English and Simplified Chinese UI strings.
- Includes a diagnostic command, Copilot Preview: Show Current Preview URI, for reporting unsupported preview URI shapes.
This extension currently recognizes these URI schemes:
copilot-cli-readonlychat-editing-snapshot-text-modelchat-editing-text-model
This is an unofficial extension and is not affiliated with GitHub or Microsoft.
The extension relies on URI schemes exposed by GitHub Copilot Chat preview editors. If GitHub Copilot Chat changes those internal preview URI schemes, this extension may need an update.
- Visual Studio Code
1.120.0or later - GitHub Copilot Chat
- Copilot Preview: Open Actual File for Preview
- Copilot Preview: Show Current Preview URI
npm install
npm run compile
npm run packageOpen this folder in VS Code and press F5 to launch an Extension Development Host.
The repository includes a GitHub Actions workflow that builds a VSIX package and publishes it as a GitHub Release when a semantic version tag is pushed.
Before creating a release, make sure the tag version matches package.json:
git tag v0.2.0
git push origin v0.2.0The workflow will:
- run
npm ci - verify
v0.2.0matchespackage.jsonversion0.2.0 - run
npm run compile - run
npm run package - create a GitHub Release
- upload the generated
.vsixfile
The workflow can also be run manually from the GitHub Actions tab.
Before publishing, replace these placeholders in package.json:
your-publisher-idYOUR_GITHUB_USER
Also replace the placeholder copyright holder in LICENSE.txt.