diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/commands/analyzer_status.ts | 1 | ||||
-rw-r--r-- | editors/code/src/commands/join_lines.ts | 7 | ||||
-rw-r--r-- | editors/code/src/commands/matching_brace.ts | 9 | ||||
-rw-r--r-- | editors/code/src/commands/on_enter.ts | 1 | ||||
-rw-r--r-- | editors/code/src/commands/parent_module.ts | 2 |
5 files changed, 12 insertions, 8 deletions
diff --git a/editors/code/src/commands/analyzer_status.ts b/editors/code/src/commands/analyzer_status.ts index 830e40e8f..b2b624b75 100644 --- a/editors/code/src/commands/analyzer_status.ts +++ b/editors/code/src/commands/analyzer_status.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | |||
2 | import { Ctx, Cmd } from '../ctx'; | 3 | import { Ctx, Cmd } from '../ctx'; |
3 | // Shows status of rust-analyzer (for debugging) | 4 | // Shows status of rust-analyzer (for debugging) |
4 | 5 | ||
diff --git a/editors/code/src/commands/join_lines.ts b/editors/code/src/commands/join_lines.ts index e906759c1..f4f902cf9 100644 --- a/editors/code/src/commands/join_lines.ts +++ b/editors/code/src/commands/join_lines.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { Range, TextDocumentIdentifier } from 'vscode-languageclient'; | 1 | import * as lc from 'vscode-languageclient'; |
2 | |||
2 | import { Ctx, Cmd } from '../ctx'; | 3 | import { Ctx, Cmd } from '../ctx'; |
3 | import { applySourceChange, SourceChange } from '../source_change'; | 4 | import { applySourceChange, SourceChange } from '../source_change'; |
4 | 5 | ||
@@ -20,6 +21,6 @@ export function joinLines(ctx: Ctx): Cmd { | |||
20 | } | 21 | } |
21 | 22 | ||
22 | interface JoinLinesParams { | 23 | interface JoinLinesParams { |
23 | textDocument: TextDocumentIdentifier; | 24 | textDocument: lc.TextDocumentIdentifier; |
24 | range: Range; | 25 | range: lc.Range; |
25 | } | 26 | } |
diff --git a/editors/code/src/commands/matching_brace.ts b/editors/code/src/commands/matching_brace.ts index a3febc5f4..59c253f88 100644 --- a/editors/code/src/commands/matching_brace.ts +++ b/editors/code/src/commands/matching_brace.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | import { Position, TextDocumentIdentifier } from 'vscode-languageclient'; | 2 | import * as lc from 'vscode-languageclient'; |
3 | |||
3 | import { Ctx, Cmd } from '../ctx'; | 4 | import { Ctx, Cmd } from '../ctx'; |
4 | 5 | ||
5 | export function matchingBrace(ctx: Ctx): Cmd { | 6 | export function matchingBrace(ctx: Ctx): Cmd { |
@@ -14,7 +15,7 @@ export function matchingBrace(ctx: Ctx): Cmd { | |||
14 | ctx.client.code2ProtocolConverter.asPosition(s.active), | 15 | ctx.client.code2ProtocolConverter.asPosition(s.active), |
15 | ), | 16 | ), |
16 | }; | 17 | }; |
17 | const response = await ctx.client.sendRequest<Position[]>( | 18 | const response = await ctx.client.sendRequest<lc.Position[]>( |
18 | 'rust-analyzer/findMatchingBrace', | 19 | 'rust-analyzer/findMatchingBrace', |
19 | request, | 20 | request, |
20 | ); | 21 | ); |
@@ -30,6 +31,6 @@ export function matchingBrace(ctx: Ctx): Cmd { | |||
30 | } | 31 | } |
31 | 32 | ||
32 | interface FindMatchingBraceParams { | 33 | interface FindMatchingBraceParams { |
33 | textDocument: TextDocumentIdentifier; | 34 | textDocument: lc.TextDocumentIdentifier; |
34 | offsets: Position[]; | 35 | offsets: lc.Position[]; |
35 | } | 36 | } |
diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts index efc0dfe1d..8324060e8 100644 --- a/editors/code/src/commands/on_enter.ts +++ b/editors/code/src/commands/on_enter.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import * as lc from 'vscode-languageclient'; | 1 | import * as lc from 'vscode-languageclient'; |
2 | |||
2 | import { applySourceChange, SourceChange } from '../source_change'; | 3 | import { applySourceChange, SourceChange } from '../source_change'; |
3 | import { Cmd, Ctx } from '../ctx'; | 4 | import { Cmd, Ctx } from '../ctx'; |
4 | 5 | ||
diff --git a/editors/code/src/commands/parent_module.ts b/editors/code/src/commands/parent_module.ts index d641181fa..258b61b21 100644 --- a/editors/code/src/commands/parent_module.ts +++ b/editors/code/src/commands/parent_module.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | |||
3 | import * as lc from 'vscode-languageclient'; | 2 | import * as lc from 'vscode-languageclient'; |
3 | |||
4 | import { Ctx, Cmd } from '../ctx'; | 4 | import { Ctx, Cmd } from '../ctx'; |
5 | 5 | ||
6 | export function parentModule(ctx: Ctx): Cmd { | 6 | export function parentModule(ctx: Ctx): Cmd { |