Skip to content

Refactor plugin to respond to init request and propagate errors to Lapce #22

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hbina
Copy link

@hbina hbina commented Feb 3, 2023

This PR assumes this other PR gets merged lapce/lapce-plugin-rust#18

@hbina hbina changed the title Refactor plugin to propagate errors to Lapce Refactor plugin to respond to init request and propagate errors to Lapce Feb 3, 2023
1. Respond to the initialization request with InitializeResult::default().
2. Bubble up error to Lapce except when using `host_sucess`, `host_error` and `start_lsp` because if
they fail then there's not much that can be done. A better way to deal with issues
in plugins is for Lapce to be aware of it but this should work for now.

Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
@hbina hbina force-pushed the hbina-refactor-to-latest-lib branch from 9963379 to 5189416 Compare March 3, 2023 07:13
@hbina hbina marked this pull request as ready for review March 3, 2023 07:14
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant