ebkalderon / tower-lsp

Language Server Protocol implementation written in Rust
Apache License 2.0
1k stars 55 forks source link

Support null and negative integer request IDs #285

Closed ebkalderon closed 3 years ago

ebkalderon commented 3 years ago

Added

Changed

Both of these request ID types are rare and bizarre and their use is generally discouraged by the JSON-RPC 2.0 spec, but are nonetheless permitted by the standard. Since we wish tower-lsp to be compatible with as many JSON-RPC client libraries as possible, we must support parsing null and negative integer request IDs, even if we never emit them ourselves.