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
*.cplog
copilot-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:vscode matches the visuals-mcp token style by reading MARKETPLACE_TOKEN from .env.
- In CI,
VSCE_PAT is also supported as a fallback.
Run in VS Code
- Open this folder in VS Code.
- Press
F5 to launch Extension Development Host.
- Open
examples/sample.copilotlog and run Format Document.
- For unsaved files (
Untitled-*), run the command above if auto-detection does not switch language mode yet.
| |