lukel97 / lsp-test

A functional test framework for LSP servers
BSD 3-Clause "New" or "Revised" License
35 stars 15 forks source link

Replay mode is defeated by a wrapper script #46

Open mpickering opened 5 years ago

mpickering commented 5 years ago

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.