Fix resolveCodeAction request

This commit is contained in:
Laurențiu Nicola 2020-10-13 12:39:09 +03:00
parent 3d13939260
commit 513d25cf03

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