6213: Fix resolveCodeAction request r=SomeoneToIgnore a=lnicola

Fixes #6204

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
bors[bot] 2020-10-13 11:31:39 +00:00 committed by GitHub
commit 2d79bb9413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}