Skip to content

Commit 512291d

Browse files
authored
undo change to fix create and run task invocation (#423)
* fix bug * add create and run task to toolset
1 parent 2f73def commit 512291d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,8 @@
10591059
"newWorkspace",
10601060
"runVscodeCommand",
10611061
"getProjectSetupInfo",
1062-
"installExtension"
1062+
"installExtension",
1063+
"createAndRunTask"
10631064
]
10641065
}
10651066
],

src/extension/intents/node/agentIntent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const getTools = (instaService: IInstantiationService, request: vscode.ChatReque
7070
}
7171

7272
allowTools[ToolName.RunTests] = await testService.hasAnyTests();
73-
allowTools[ToolName.CoreCreateAndRunTask] = !!(configurationService.getConfig(ConfigKey.AgentCanRunTasks) && tasksService.getTasks().length);
73+
allowTools[ToolName.CoreRunTask] = !!(configurationService.getConfig(ConfigKey.AgentCanRunTasks) && tasksService.getTasks().length);
7474

7575
return toolsService.getEnabledTools(request, tool => {
7676
if (typeof allowTools[tool.name] === 'boolean') {

0 commit comments

Comments
 (0)