aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/on_enter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/commands/on_enter.ts')
-rw-r--r--editors/code/src/commands/on_enter.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts
index fe6aca63d..64401b684 100644
--- a/editors/code/src/commands/on_enter.ts
+++ b/editors/code/src/commands/on_enter.ts
@@ -6,10 +6,6 @@ import {
6 SourceChange 6 SourceChange
7} from './apply_source_change'; 7} from './apply_source_change';
8 8
9interface OnEnterParams {
10 textDocument: lc.TextDocumentIdentifier;
11 position: lc.Position;
12}
13 9
14export async function handle(event: { text: string }): Promise<boolean> { 10export async function handle(event: { text: string }): Promise<boolean> {
15 const editor = vscode.window.activeTextEditor; 11 const editor = vscode.window.activeTextEditor;
@@ -20,7 +16,7 @@ export async function handle(event: { text: string }): Promise<boolean> {
20 ) { 16 ) {
21 return false; 17 return false;
22 } 18 }
23 const request: OnEnterParams = { 19 const request: lc.TextDocumentPositionParams = {
24 textDocument: { uri: editor.document.uri.toString() }, 20 textDocument: { uri: editor.document.uri.toString() },
25 position: Server.client.code2ProtocolConverter.asPosition( 21 position: Server.client.code2ProtocolConverter.asPosition(
26 editor.selection.active 22 editor.selection.active