lukel97 / lsp-test

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

Generate Haskell Source File from Replay #55

Open fendor opened 4 years ago

fendor commented 4 years ago

Given a replay, generate a Haskell source file, that represents all the lsp messages that have been sent during a session. The source file contains assertions what the responses should look like. The source file should be easy to modify.

The purpose is to include debug information in a replay such that the replay is easier to follow. It would also be possible to modify the response assertions if they are not important or contain minor inconsistencies, such as in #46. It would also be helpful to minify a replay to the actual problem.