mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Run prettier on all files
This commit is contained in:
parent
9bfeac708d
commit
ac3d0e8340
7 changed files with 18 additions and 23 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue