Skip to content

feat(lsp): add 'codeAction/resolve' support#1420

Merged
dzhou121 merged 1 commit intolapce:masterfrom
oknozor:feat/codeAction/resolve
Oct 3, 2022
Merged

feat(lsp): add 'codeAction/resolve' support#1420
dzhou121 merged 1 commit intolapce:masterfrom
oknozor:feat/codeAction/resolve

Conversation

@oknozor
Copy link
Copy Markdown
Contributor

@oknozor oknozor commented Oct 1, 2022

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 1, 2022

Codecov Report

Merging #1420 (241e7e0) into master (a19318e) will increase coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master   #1420      +/-   ##
=========================================
+ Coverage    6.15%   6.18%   +0.02%     
=========================================
  Files         122     122              
  Lines       49420   49195     -225     
=========================================
  Hits         3041    3041              
+ Misses      46379   46154     -225     
Impacted Files Coverage Δ
lapce-data/src/command.rs 0.00% <ø> (ø)
lapce-data/src/document.rs 0.00% <0.00%> (ø)
lapce-data/src/editor.rs 0.00% <0.00%> (ø)
lapce-proxy/src/dispatch.rs 0.00% <0.00%> (ø)
lapce-proxy/src/plugin/lsp.rs 0.00% <0.00%> (ø)
lapce-proxy/src/plugin/mod.rs 0.00% <0.00%> (ø)
lapce-proxy/src/plugin/psp.rs 0.00% <0.00%> (ø)
lapce-rpc/src/proxy.rs 0.00% <0.00%> (ø)
lapce-ui/src/editor.rs 0.00% <0.00%> (ø)
lapce-ui/src/editor/gutter.rs 0.00% <0.00%> (ø)
... and 11 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@oknozor oknozor marked this pull request as draft October 1, 2022 12:38
@oknozor oknozor force-pushed the feat/codeAction/resolve branch from ce84f21 to a2ed6a9 Compare October 2, 2022 07:42
@oknozor oknozor marked this pull request as ready for review October 2, 2022 07:59
cb: impl FnOnce(Result<CodeAction, RpcError>) + Send + Clone + 'static,
) {
let method = CodeActionResolveRequest::METHOD;
self.send_request_to_all_plugins(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It would be better to include the plugin_id in the code action response, and then only send to the same plugin_id here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Excellent! Thanks.

@oknozor oknozor force-pushed the feat/codeAction/resolve branch from a2ed6a9 to f5c3f69 Compare October 3, 2022 16:15
@oknozor oknozor force-pushed the feat/codeAction/resolve branch from f5c3f69 to 241e7e0 Compare October 3, 2022 16:38
@dzhou121 dzhou121 merged commit 05b5caa into lapce:master Oct 3, 2022
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.

3 participants