@@ -35,11 +35,10 @@ export function registerCommands(context: vscode.ExtensionContext, clients: Exte
35
35
) ;
36
36
37
37
context . subscriptions . push (
38
- vscode . commands . registerCommand ( 'ada.runMainLast ' , ( ) => runMainLast ( ) )
38
+ vscode . commands . registerCommand ( 'ada.buildAndRunMainLast ' , buildAndRunMainLast )
39
39
) ;
40
-
41
40
context . subscriptions . push (
42
- vscode . commands . registerCommand ( 'ada.runMainAsk ' , ( ) => runMainAsk ( ) )
41
+ vscode . commands . registerCommand ( 'ada.buildAndRunMainAsk ' , buildAndRunMainAsk )
43
42
) ;
44
43
45
44
// This is a hidden command that gets called in the default debug
@@ -125,13 +124,13 @@ async function addSupbrogramBoxCommand() {
125
124
let lastUsedTaskInfo : { source : string ; name : string } | undefined ;
126
125
127
126
/**
128
- * If a task was previously run through the commands `ada.runMainAsk ` or
129
- * `ada.runMainLast `, re-run the same task. If not, defer to {@link runMainAsk }
127
+ * If a task was previously run through the commands `ada.buildAndRunMainAsk ` or
128
+ * `ada.buildAndRunMainLast `, re-run the same task. If not, defer to {@link buildAndRunMainAsk }
130
129
* to ask the User to select a task to run.
131
130
*
132
131
* @returns the TaskExecution corresponding to the task.
133
132
*/
134
- async function runMainLast ( ) {
133
+ async function buildAndRunMainLast ( ) {
135
134
const buildAndRunTasks = await getBuildAndRunTasks ( ) ;
136
135
if ( lastUsedTaskInfo ) {
137
136
const matchingTasks = buildAndRunTasks . filter ( matchesLastUsedTask ) ;
@@ -143,7 +142,7 @@ async function runMainLast() {
143
142
}
144
143
145
144
// No task was run so far, or the last one run no longer exists
146
- return runMainAsk ( ) ;
145
+ return buildAndRunMainAsk ( ) ;
147
146
}
148
147
149
148
/**
@@ -179,7 +178,7 @@ interface TaskQuickPickItem extends vscode.QuickPickItem {
179
178
* button to add the task to tasks.json (if not already there) and configure it
180
179
* there.
181
180
*/
182
- async function runMainAsk ( ) {
181
+ async function buildAndRunMainAsk ( ) {
183
182
function createQuickPickItem ( task : vscode . Task ) : TaskQuickPickItem {
184
183
return {
185
184
// Mark the last used task with a leading star
0 commit comments