Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 988 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 988 Bytes

Light up running code

What is this?

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?

Demo

Screen recording

How this works

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.

Run this yourself locally

  1. Clone the repository
  2. Run the build/watch script: bin/build
  3. Open it in VS Code
  4. Press F5 (or Run > Start Debugging)
  5. Open the agent directory in this respository in the resulting VS Code window (labelled ‘Extension Development Host’)
  6. Run the example script in the agent directory, ruby example.rb
  7. Watch the lines of code light up as they run