aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-24 22:49:19 +0000
committerVeetaha <[email protected]>2020-02-24 22:49:19 +0000
commit21ab13396672a4ad75b93bbb73af02d019ef918b (patch)
tree1e1bddf300efbe416b8ec8ffbb6090ecf9fc30a0 /editors/code/src
parent39efb301ff7946592ac0d8a64749582daaa67b86 (diff)
vscode: migrate source_cnage.rs to rust-analyzer-api.rs
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/source_change.ts9
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 @@
1import * as vscode from 'vscode'; 1import * as vscode from 'vscode';
2import * as lc from 'vscode-languageclient'; 2import * as lc from 'vscode-languageclient';
3import * as ra from './rust-analyzer-api';
3 4
4import { Ctx } from './ctx'; 5import { Ctx } from './ctx';
5 6
6export interface SourceChange { 7export async function applySourceChange(ctx: Ctx, change: ra.SourceChange) {
7 label: string;
8 workspaceEdit: lc.WorkspaceEdit;
9 cursorPosition?: lc.TextDocumentPositionParams;
10}
11
12export 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