aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorivan770 <[email protected]>2021-03-16 15:11:50 +0000
committerivan770 <[email protected]>2021-03-18 09:22:27 +0000
commit5f5a3e6eaecbe63916756c6706aef17792e46c06 (patch)
treeca3106a084a60ff0b3b35c6f5bda0b2efdea21a3 /editors
parenta154ef7ca1010b890e7dbe913d00140ed029945c (diff)
Fix tsfmt and eslint warnings
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/commands.ts2
-rw-r--r--editors/code/src/lsp_ext.ts6
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 {
131export const moveItem = new lc.RequestType<MoveItemParams, lc.TextDocumentEdit | void, void>("experimental/moveItem"); 131export const moveItem = new lc.RequestType<MoveItemParams, lc.TextDocumentEdit | void, void>("experimental/moveItem");
132 132
133export interface MoveItemParams { 133export 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
139export const enum Direction { 139export const enum Direction {