Skip to content

Commit 483b4fb

Browse files
committed
Switch to the legacy API for calling a task
1 parent 60180e0 commit 483b4fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/project/tasks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ export default class ProjectTaskManager {
156156
) {
157157
return;
158158
}
159-
vscode.commands.executeCommand('workbench.action.tasks.runTask', {
160-
type: ProjectTaskManager.PROVIDER_TYPE,
161-
task: task.id,
162-
});
159+
vscode.commands.executeCommand(
160+
'workbench.action.tasks.runTask',
161+
`${ProjectTaskManager.PROVIDER_TYPE}: ${task.id}`
162+
);
163163
}
164164

165165
_autoCloseSerialMonitor(task) {

0 commit comments

Comments
 (0)