Skip to content

Commit 41657f4

Browse files
authored
Merge pull request microsoft#262999 from microsoft/aeschli/empty-gibbon
Show tools from toolsets in the tools picker
2 parents 9ec8fcf + b87a50c commit 41657f4

File tree

8 files changed

+312
-352
lines changed

8 files changed

+312
-352
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatToolActions.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { ChatContextKeys } from '../../common/chatContextKeys.js';
2323
import { IChatToolInvocation, ToolConfirmKind } from '../../common/chatService.js';
2424
import { isResponseVM } from '../../common/chatViewModel.js';
2525
import { ChatModeKind } from '../../common/constants.js';
26-
import { IToolData, ToolSet } from '../../common/languageModelToolsService.js';
2726
import { IChatWidget, IChatWidgetService } from '../chat.js';
2827
import { ToolsScope } from '../chatSelectedTools.js';
2928
import { CHAT_CATEGORY } from './chatActions.js';
@@ -137,19 +136,7 @@ class ConfigureToolsAction extends Action2 {
137136
break;
138137
}
139138

140-
const result = await instaService.invokeFunction(showToolsPicker, placeholder, description, entriesMap.get(), newEntriesMap => {
141-
const disableToolSets: ToolSet[] = [];
142-
const disableTools: IToolData[] = [];
143-
for (const [item, enabled] of newEntriesMap) {
144-
if (!enabled) {
145-
if (item instanceof ToolSet) {
146-
disableToolSets.push(item);
147-
} else {
148-
disableTools.push(item);
149-
}
150-
}
151-
}
152-
});
139+
const result = await instaService.invokeFunction(showToolsPicker, placeholder, description, entriesMap.get());
153140
if (result) {
154141
widget.input.selectedToolsModel.set(result, false);
155142
}

0 commit comments

Comments
 (0)