hackwaly / vscode-ocaml

An extension for VS Code which provides support for the OCaml language.
MIT License
170 stars 26 forks source link

Debugger: retrieveSource() problem #76

Closed db4 closed 7 years ago

db4 commented 7 years ago

When I step into a function from another file, I see the following: image (note $1) This is introduced by

 // FIXME: make sure do not accidently replace "<|a|>" in a string or comment.
return line.replace(/^\d+ /, '').replace(/<\|[ab]\|>/, '$1');

in debug.ts. What is the purpose of $1? Why not just replace it with an empty string?

hackwaly commented 7 years ago

Sorry for the late response.