VS Code extension for:
- Formatting Copilot request artifacts extracted from GitHub Copilot logs
- Syntax highlighting for common Copilot log request structures, especially system prompt blocks
Supported files
*.copilotlog*.cplogcopilot-system.copilotlog
Features
- Document formatter for language
copilot-log-request - Frontmatter normalization (ordering and spacing)
- Body normalization (trailing whitespace and blank-line compaction)
- Auto-detection for untitled files when content matches Copilot log request patterns
- Command to force language mode on any open file:
Copilot Log Request: Use Copilot Log Request Language For Active Document - Highlighting for:
- Frontmatter delimiters and keys
- Section markers like
--- System ---or### System - Placeholders like
{{VSCODE_TARGET_SESSION_LOG}}and${input:htmlFile}
Build
npm install
npm run compile
Package and publish
- Create a local token file from template:
cp .env.template .env
- Set your Marketplace token in
.env:
MARKETPLACE_TOKEN=your_vscode_marketplace_pat
- Package a VSIX:
npm run package:vscode
- Publish to VS Code Marketplace:
npm run publish:vscode
Notes:
publish:vscodematches thevisuals-mcptoken style by readingMARKETPLACE_TOKENfrom.env.- In CI,
VSCE_PATis also supported as a fallback.
Run in VS Code
- Open this folder in VS Code.
- Press
F5to launch Extension Development Host. - Open
examples/sample.copilotlogand runFormat Document. - For unsaved files (
Untitled-*), run the command above if auto-detection does not switch language mode yet.