We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc00326 commit b120817Copy full SHA for b120817
src/lm/tools/suggestFixTool.ts
@@ -58,7 +58,12 @@ export class SuggestFixTool extends RepoToolBase<IssueToolParameters> {
58
messages.push(vscode.LanguageModelChatMessage.User(`Comment ${index}: ${comment.body}`));
59
});
60
61
- const copilotCodebaseResult = await vscode.lm.invokeTool('copilot_searchCodebase', {
+ const codeSearchTool = vscode.lm.tools.find(value => value.tags.includes('vscode_codesearch'));
62
+ if (!codeSearchTool) {
63
+ throw new Error('Could not find the code search tool');
64
+ }
65
+
66
+ const copilotCodebaseResult = await vscode.lm.invokeTool(codeSearchTool.name, {
67
toolInvocationToken: undefined,
68
input: {
69
query: result.title
0 commit comments