diff options
author | ivan770 <[email protected]> | 2021-03-16 15:11:50 +0000 |
---|---|---|
committer | ivan770 <[email protected]> | 2021-03-18 09:22:27 +0000 |
commit | 5f5a3e6eaecbe63916756c6706aef17792e46c06 (patch) | |
tree | ca3106a084a60ff0b3b35c6f5bda0b2efdea21a3 | |
parent | a154ef7ca1010b890e7dbe913d00140ed029945c (diff) |
Fix tsfmt and eslint warnings
-rw-r--r-- | editors/code/src/commands.ts | 2 | ||||
-rw-r--r-- | editors/code/src/lsp_ext.ts | 6 |
2 files changed, 4 insertions, 4 deletions
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 { | |||
154 | direction | 154 | direction |
155 | }); | 155 | }); |
156 | 156 | ||
157 | if(!edit) return; | 157 | if (!edit) return; |
158 | 158 | ||
159 | await editor.edit((builder) => { | 159 | await editor.edit((builder) => { |
160 | client.protocol2CodeConverter.asTextEdits(edit.edits).forEach((edit: any) => { | 160 | 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 { | |||
131 | export const moveItem = new lc.RequestType<MoveItemParams, lc.TextDocumentEdit | void, void>("experimental/moveItem"); | 131 | export const moveItem = new lc.RequestType<MoveItemParams, lc.TextDocumentEdit | void, void>("experimental/moveItem"); |
132 | 132 | ||
133 | export interface MoveItemParams { | 133 | export interface MoveItemParams { |
134 | textDocument: lc.TextDocumentIdentifier, | 134 | textDocument: lc.TextDocumentIdentifier; |
135 | range: lc.Range, | 135 | range: lc.Range; |
136 | direction: Direction | 136 | direction: Direction; |
137 | } | 137 | } |
138 | 138 | ||
139 | export const enum Direction { | 139 | export const enum Direction { |