TX Trace Language VS Code Extension
Language support for tx-trace files with trace-aware visuals and navigation.
Highlights
- Rust-aligned tokenization plus tx-trace specific scopes
- Trace line parsing (guides, arrows, gas, contract::function, call tags)
- Address shortening with hover to reveal the full 20-byte address
- Distinct styling for 32-byte hashes and other hex strings
- Flow tags and emit lines (
Stop, Return, Revert, emit)
- Gutter markers for
staticcall and delegatecall
- Custom folding for tree-style call frames
- Go to Definition / Peek References for contract and function tokens
- File icon for
.txtrace and .tx-trace
File types
Dev
- Install dependencies (prefers bun if available):
if command -v bun >/dev/null 2>&1; then
bun install
else
npm install
fi
- Build TypeScript:
npm run build
- Open in VS Code and run the extension host:
code --extensionDevelopmentPath=$(pwd)
| |