Function to respond to a request from the client editor
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by locating handle_request and object_to_stdout in the plugin API. Assess how a typed send_response<T: Request> could replace the current response path, then verify that the response parameter type is enforced according to T::Result and that client requests can receive the response by id.
Written by the indexing model from the issue text.
Description
Currently, one can respond to a request (received in handle_request) by using object_to_stdout, but that is a poor API. Here's my idea of the function definition for responding:
/// `T` is the type of the request you're responding to
fn send_response<T: Request>(id: u64, params: T::Result);
So, knowing the request type (which they can presumably do), it enforces that the resulting type you send back is correct.
- Dominant language
- Rust
- Stars
- 31
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lapce/lapce-plugin-rust
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
lapce/lapce-plugin-rust#24 · 1 comment ·
-
Async Requests Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
lapce/lapce-plugin-rust#22 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
lapce/lapce-plugin-rust#21 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
lapce/lapce-plugin-rust#20 ·
-
how to debug plugin? Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
lapce/lapce-plugin-rust#16 ·
All issues in lapce/lapce-plugin-rust
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100