diff options
Diffstat (limited to 'editors/code/src/commands/runnables.ts')
-rw-r--r-- | editors/code/src/commands/runnables.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index c4be21a0c..8cd86c21e 100644 --- a/editors/code/src/commands/runnables.ts +++ b/editors/code/src/commands/runnables.ts | |||
@@ -8,7 +8,7 @@ export function run(ctx: Ctx): Cmd { | |||
8 | 8 | ||
9 | return async () => { | 9 | return async () => { |
10 | const editor = ctx.activeRustEditor; | 10 | const editor = ctx.activeRustEditor; |
11 | if (!editor) return | 11 | if (!editor) return; |
12 | 12 | ||
13 | const textDocument: lc.TextDocumentIdentifier = { | 13 | const textDocument: lc.TextDocumentIdentifier = { |
14 | uri: editor.document.uri.toString(), | 14 | uri: editor.document.uri.toString(), |
@@ -43,13 +43,13 @@ export function run(ctx: Ctx): Cmd { | |||
43 | prevRunnable = item; | 43 | prevRunnable = item; |
44 | const task = createTask(item.runnable); | 44 | const task = createTask(item.runnable); |
45 | return await vscode.tasks.executeTask(task); | 45 | return await vscode.tasks.executeTask(task); |
46 | } | 46 | }; |
47 | } | 47 | } |
48 | 48 | ||
49 | export function runSingle(ctx: Ctx): Cmd { | 49 | export function runSingle(ctx: Ctx): Cmd { |
50 | return async (runnable: Runnable) => { | 50 | return async (runnable: Runnable) => { |
51 | const editor = ctx.activeRustEditor; | 51 | const editor = ctx.activeRustEditor; |
52 | if (!editor) return | 52 | if (!editor) return; |
53 | 53 | ||
54 | const task = createTask(runnable); | 54 | const task = createTask(runnable); |
55 | task.group = vscode.TaskGroup.Build; | 55 | task.group = vscode.TaskGroup.Build; |
@@ -60,7 +60,7 @@ export function runSingle(ctx: Ctx): Cmd { | |||
60 | }; | 60 | }; |
61 | 61 | ||
62 | return vscode.tasks.executeTask(task); | 62 | return vscode.tasks.executeTask(task); |
63 | } | 63 | }; |
64 | } | 64 | } |
65 | 65 | ||
66 | interface RunnablesParams { | 66 | interface RunnablesParams { |