A quick and dirty proof-of-concept of an idea I had – what if when you ran code, the relevant lines lit up in your text editor? And maybe those lines which ran the most lit up the brightest?
The implementation here consists of a Ruby agent and a VS Code extension. The agent profiles running code and pings messages to a socket, which the extension listens for and surfaces in the editor.
- Clone the repository
- Run the build/watch script:
bin/build
- Open it in VS Code
- Press F5 (or Run > Start Debugging)
- Open the
agent
directory in this respository in the resulting VS Code window (labelled ‘Extension Development Host’) - Run the example script in the
agent
directory,ruby example.rb
- Watch the lines of code light up as they run