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 { export function resolveCodeAction(ctx: Ctx): Cmd {
const client = ctx.client; const client = ctx.client;
return async () => { return async (params: ra.ResolveCodeActionParams) => {
const item: lc.WorkspaceEdit = await client.sendRequest(ra.resolveCodeAction, null); const item: lc.WorkspaceEdit = await client.sendRequest(ra.resolveCodeAction, params);
if (!item) { if (!item) {
return; return;
} }