These should probably be public.
|
lines += ["type LSPObject = serde_json::Value;"] |
|
lines += ["type LSPArray = Vec<LSPAny>;"] |
I'm sure it's known given the alpha state of the crate, but the LSPRequestMethods and LSPNotificationMethods enums are bit less useful without the various message structs/traits (Request, Notification, and even Response). If I create Request per the spec myself, for example, params? (in TS) is probably Option<OR2<LSPArray, LSPObject>> in Rust based on the current generated code.
These should probably be public.
lsprotocol/generator/plugins/rust/rust_commons.py
Line 260 in 7fcebf3
lsprotocol/generator/plugins/rust/rust_commons.py
Line 262 in 7fcebf3
I'm sure it's known given the alpha state of the crate, but the
LSPRequestMethodsandLSPNotificationMethodsenums are bit less useful without the various message structs/traits (Request,Notification, and evenResponse). If I create Request per the spec myself, for example,params?(in TS) is probablyOption<OR2<LSPArray, LSPObject>>in Rust based on the current generated code.