Run prettier on all files

This commit is contained in:
Aleksey Kladov 2019-12-30 18:31:08 +01:00
parent 9bfeac708d
commit ac3d0e8340
7 changed files with 18 additions and 23 deletions

View file

@ -10,7 +10,9 @@ export function matchingBrace(ctx: Ctx): Cmd {
}
const request: FindMatchingBraceParams = {
textDocument: { uri: editor.document.uri.toString() },
offsets: editor.selections.map(s => ctx.client.code2ProtocolConverter.asPosition(s.active)),
offsets: editor.selections.map(s =>
ctx.client.code2ProtocolConverter.asPosition(s.active),
),
};
const response = await ctx.client.sendRequest<Position[]>(
'rust-analyzer/findMatchingBrace',
@ -24,7 +26,7 @@ export function matchingBrace(ctx: Ctx): Cmd {
return new vscode.Selection(anchor, active);
});
editor.revealRange(editor.selection);
}
};
}
interface FindMatchingBraceParams {