about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-10-13 11:31:39 +0000
committerGitHub <noreply@github.com>2020-10-13 11:31:39 +0000
commit2d79bb9413b3e30d15d70b49ca19fcf47a97e592 (patch)
treef7c396e80d247551224f8c912f7edc271ba340df
parent3d13939260f565fe6fb176b15e23201aafc2d11e (diff)
parent513d25cf0349e174b36a086e636249a3369d2e7a (diff)
downloadrust-2d79bb9413b3e30d15d70b49ca19fcf47a97e592.tar.gz
rust-2d79bb9413b3e30d15d70b49ca19fcf47a97e592.zip
Merge #6213
6213: Fix resolveCodeAction request r=SomeoneToIgnore a=lnicola

Fixes #6204

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
-rw-r--r--editors/code/src/commands.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 1445e41d3cb..22509e87403 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -442,8 +442,8 @@ export function openDocs(ctx: Ctx): Cmd {
 
 export function resolveCodeAction(ctx: Ctx): Cmd {
     const client = ctx.client;
-    return async () => {
-        const item: lc.WorkspaceEdit = await client.sendRequest(ra.resolveCodeAction, null);
+    return async (params: ra.ResolveCodeActionParams) => {
+        const item: lc.WorkspaceEdit = await client.sendRequest(ra.resolveCodeAction, params);
         if (!item) {
             return;
         }