Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

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
}
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants