From 5f5a3e6eaecbe63916756c6706aef17792e46c06 Mon Sep 17 00:00:00 2001 From: ivan770 Date: Tue, 16 Mar 2021 17:11:50 +0200 Subject: Fix tsfmt and eslint warnings --- editors/code/src/commands.ts | 2 +- editors/code/src/lsp_ext.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'editors') diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index ad0b533b9..59ef98ecf 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -154,7 +154,7 @@ export function moveItem(ctx: Ctx, direction: ra.Direction): Cmd { direction }); - if(!edit) return; + if (!edit) return; await editor.edit((builder) => { client.protocol2CodeConverter.asTextEdits(edit.edits).forEach((edit: any) => { diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index 4c070beb0..00e128b8c 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts @@ -131,9 +131,9 @@ export interface OpenCargoTomlParams { export const moveItem = new lc.RequestType("experimental/moveItem"); export interface MoveItemParams { - textDocument: lc.TextDocumentIdentifier, - range: lc.Range, - direction: Direction + textDocument: lc.TextDocumentIdentifier; + range: lc.Range; + direction: Direction; } export const enum Direction { -- cgit v1.2.3