lsp-test
lsp-test copied to clipboard
Replay mode is defeated by a wrapper script
If you pass a wrapper script to replaySession then it is quickly defeated by a mismatched initialisation response.
This is because getProcessID returns the ID of the wrapper script rather than HIE itself so all the commands end up with the wrong prefix.
A more robust solution would be to just strip the PID from the commands for both expected and received messages.