zbelial / lspce

LSP Client for Emacs implemented as a module using rust.
GNU General Public License v3.0
154 stars 11 forks source link

serde_json deserialize string to a wrong type? #13

Closed zbelial closed 1 year ago

zbelial commented 1 year ago

2023-07-02 14:28:22.920 - Message::_read {"jsonrpc":"2.0","id":"31","method":"window/workDoneProgress/create","params":{"token":"9bdba228-b92e-4b4f-8c88-c208ec333773"}}

2023-07-02 14:28:22.920 - stdio read response {"jsonrpc":"2.0","id":"31","method":"window/workDoneProgress/create","params":{"token":"9bdba228-b92e-4b4f-8c88-c208ec333773"}}

This is a request message from server, but after deserialized, it becomes a response. :(

zbelial commented 1 year ago

Fixed. Struct definition problem.