I was thinking LD would call ``setRequestFilter`` for the active doc, yes. I agree it would be simpler for LD to hand the server the instrumented code at first, but to do it just-in-time might make more sense in the future when we support editing. For example, with the current setup, the user might hit refresh in the browser with a dirty document in Brackets. At that point, we could actually pass an updated instrumented file.

@gruehle ... opinion?