diff options
author | Aleksey Kladov <[email protected]> | 2019-12-30 17:31:08 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-30 18:07:59 +0000 |
commit | ac3d0e83403be22ec31d62a1501d726f6e6f81e1 (patch) | |
tree | 9619c5c0a173acea0ef7e4855ed7eac27087d0d2 /editors/code/src/commands/matching_brace.ts | |
parent | 9bfeac708d33056b37d780b948cb1f117cac19af (diff) |
Run prettier on all files
Diffstat (limited to 'editors/code/src/commands/matching_brace.ts')
-rw-r--r-- | editors/code/src/commands/matching_brace.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/src/commands/matching_brace.ts b/editors/code/src/commands/matching_brace.ts index 665b0c33c..a3febc5f4 100644 --- a/editors/code/src/commands/matching_brace.ts +++ b/editors/code/src/commands/matching_brace.ts | |||
@@ -10,7 +10,9 @@ export function matchingBrace(ctx: Ctx): Cmd { | |||
10 | } | 10 | } |
11 | const request: FindMatchingBraceParams = { | 11 | const request: FindMatchingBraceParams = { |
12 | textDocument: { uri: editor.document.uri.toString() }, | 12 | textDocument: { uri: editor.document.uri.toString() }, |
13 | offsets: editor.selections.map(s => ctx.client.code2ProtocolConverter.asPosition(s.active)), | 13 | offsets: editor.selections.map(s => |
14 | ctx.client.code2ProtocolConverter.asPosition(s.active), | ||
15 | ), | ||
14 | }; | 16 | }; |
15 | const response = await ctx.client.sendRequest<Position[]>( | 17 | const response = await ctx.client.sendRequest<Position[]>( |
16 | 'rust-analyzer/findMatchingBrace', | 18 | 'rust-analyzer/findMatchingBrace', |
@@ -24,7 +26,7 @@ export function matchingBrace(ctx: Ctx): Cmd { | |||
24 | return new vscode.Selection(anchor, active); | 26 | return new vscode.Selection(anchor, active); |
25 | }); | 27 | }); |
26 | editor.revealRange(editor.selection); | 28 | editor.revealRange(editor.selection); |
27 | } | 29 | }; |
28 | } | 30 | } |
29 | 31 | ||
30 | interface FindMatchingBraceParams { | 32 | interface FindMatchingBraceParams { |