Skip to content

repl: show lexically scoped vars in tab completion

Use the V8 inspector protocol to query the list of lexically scoped variables (defined with let, const or class).

Fixes: #983 (closed)

This is not ready to be merged. I still have to add tests and handle the case in which the inspector is already open. Completion is working but there is one issue: every time tab is pressed, this message is printed to the console:

Debugger listening on ws://127.0.0.1:9229/uuid
For help see https://nodejs.org/en/docs/inspector

Can I prevent that from happening?

Merge request reports

Loading