diff options
author | Veetaha <[email protected]> | 2020-02-24 22:49:19 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-24 22:49:19 +0000 |
commit | 21ab13396672a4ad75b93bbb73af02d019ef918b (patch) | |
tree | 1e1bddf300efbe416b8ec8ffbb6090ecf9fc30a0 | |
parent | 39efb301ff7946592ac0d8a64749582daaa67b86 (diff) |
vscode: migrate source_cnage.rs to rust-analyzer-api.rs
-rw-r--r-- | editors/code/src/source_change.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/editors/code/src/source_change.ts b/editors/code/src/source_change.ts index a336269ba..399a150c6 100644 --- a/editors/code/src/source_change.ts +++ b/editors/code/src/source_change.ts | |||
@@ -1,15 +1,10 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | import * as lc from 'vscode-languageclient'; | 2 | import * as lc from 'vscode-languageclient'; |
3 | import * as ra from './rust-analyzer-api'; | ||
3 | 4 | ||
4 | import { Ctx } from './ctx'; | 5 | import { Ctx } from './ctx'; |
5 | 6 | ||
6 | export interface SourceChange { | 7 | export async function applySourceChange(ctx: Ctx, change: ra.SourceChange) { |
7 | label: string; | ||
8 | workspaceEdit: lc.WorkspaceEdit; | ||
9 | cursorPosition?: lc.TextDocumentPositionParams; | ||
10 | } | ||
11 | |||
12 | export async function applySourceChange(ctx: Ctx, change: SourceChange) { | ||
13 | const client = ctx.client; | 8 | const client = ctx.client; |
14 | if (!client) return; | 9 | if (!client) return; |
15 | 10 | ||