Skip to content
New issue

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

By clicking “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? Sign in to your account

Refactor to update to respond to initialization requests #8

Open
wants to merge 1 commit into
base: volt
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

Also rename initialize => calculate_lsp_params and do effectful calls (like start_lsp and responding to request) in handle_request.

Signed-off-by: Hanif Bin Ariffin [email protected]

@hbina hbina marked this pull request as ready for review February 26, 2023 03:37
This PR assumes this other PR gets merged lapce/lapce-plugin-rust#18

Also rename initialize => calculate_lsp_params and do effectful
calls (like start_lsp and responding to request) in handle_request.

Signed-off-by: Hanif Bin Ariffin <[email protected]>
@hbina hbina force-pushed the hbina-refactor-to-latest-lib branch from 498360d to af22604 Compare March 3, 2023 04:12
@@ -47,7 +47,10 @@ macro_rules! string {
String::from($s)
};
}
fn initialize(params: InitializeParams) -> Result<()> {

type LspParams = (Url, Vec<String>, Vec<DocumentFilter>, Option<Value>);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be better as a struct so that each of the values can have names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants