Copilot Chat Exporter
This VS Code extension adds a Copilot Chats view to the Explorer. It lists
GitHub Copilot Chat conversations found in the currently opened VS Code
workspace, with an export action for each chat.
Use
- Open a folder or workspace in VS Code.
- Find Copilot Chats in the Explorer sidebar.
- Use the export icon next to a chat (or select the chat) to save that
conversation as its own HTML file.
- Use the refresh button in the view title to rescan local history.
The extension checks the current workspace's VS Code User/workspaceStorage
JSON/JSONL files, including common VS Code remote-server storage locations.
Use Refresh Copilot Chats to rescan; the view reports the number of locally
stored conversations found. Cloud-mode sessions are not listed: VS Code does
not expose a supported extension API for reading sessions owned by Copilot's
Cloud provider, and refreshing will not make those sessions appear. VS Code
storage formats can change, so sessions that are not represented as readable
JSON or JSONL may not be exportable.
Build
Run npm install, then npm run compile.
Publish it on the VS Code Marketplace
Create a Marketplace publisher and note its publisher ID.
In package.json, replace "publisher": "local" with that ID. Also review the extension’s name, version, README, and license.
Create a Marketplace publishing token, then run:
Publishing makes the extension publicly available. Increase the version in package.json for future releases.
The official publishing guide covers publisher setup, tokens, packaging, and publishing.