aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-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 {