diff options
Diffstat (limited to 'editors/code/src/tasks.ts')
-rw-r--r-- | editors/code/src/tasks.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/tasks.ts b/editors/code/src/tasks.ts index c22d69362..9748824df 100644 --- a/editors/code/src/tasks.ts +++ b/editors/code/src/tasks.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | import { getCargoPathOrFail } from "./cargo"; | 2 | import * as toolchain from "./toolchain"; |
3 | 3 | ||
4 | // This ends up as the `type` key in tasks.json. RLS also uses `cargo` and | 4 | // This ends up as the `type` key in tasks.json. RLS also uses `cargo` and |
5 | // our configuration should be compatible with it so use the same key. | 5 | // our configuration should be compatible with it so use the same key. |
@@ -25,7 +25,7 @@ class CargoTaskProvider implements vscode.TaskProvider { | |||
25 | // set of tasks that always exist. These tasks cannot be removed in | 25 | // set of tasks that always exist. These tasks cannot be removed in |
26 | // tasks.json - only tweaked. | 26 | // tasks.json - only tweaked. |
27 | 27 | ||
28 | const cargoPath = getCargoPathOrFail(); | 28 | const cargoPath = toolchain.cargoPath(); |
29 | 29 | ||
30 | return [ | 30 | return [ |
31 | { command: 'build', group: vscode.TaskGroup.Build }, | 31 | { command: 'build', group: vscode.TaskGroup.Build }, |