diff options
Diffstat (limited to 'editors/code/src/commands/join_lines.ts')
-rw-r--r-- | editors/code/src/commands/join_lines.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/editors/code/src/commands/join_lines.ts b/editors/code/src/commands/join_lines.ts deleted file mode 100644 index de0614653..000000000 --- a/editors/code/src/commands/join_lines.ts +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | import * as ra from '../rust-analyzer-api'; | ||
2 | |||
3 | import { Ctx, Cmd } from '../ctx'; | ||
4 | import { applySourceChange } from '../source_change'; | ||
5 | |||
6 | export function joinLines(ctx: Ctx): Cmd { | ||
7 | return async () => { | ||
8 | const editor = ctx.activeRustEditor; | ||
9 | const client = ctx.client; | ||
10 | if (!editor || !client) return; | ||
11 | |||
12 | const change = await client.sendRequest(ra.joinLines, { | ||
13 | range: client.code2ProtocolConverter.asRange(editor.selection), | ||
14 | textDocument: { uri: editor.document.uri.toString() }, | ||
15 | }); | ||
16 | await applySourceChange(ctx, change); | ||
17 | }; | ||
18 | } | ||