Skip to content

Commit 811506f

Browse files
authored
Merge branch 'main' into copilot/fix-copyable-links-in-issue-view
2 parents 4ff224b + b99fbe9 commit 811506f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/@types/vscode.proposed.chatContextProvider.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ declare module 'vscode' {
8989
* Chat context items can be provided without a `value`, as the `value` can be resolved later using `resolveChatContext`.
9090
* `resolveChatContext` is only called for items that do not have a `value`.
9191
*
92-
* Currently only called when the resource is a webview.
92+
* Called when the resource is a webview or a text editor.
9393
*
9494
* @param options Options include the resource for which to provide context.
9595
* @param token A cancellation token.

src/lm/participants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class ChatParticipant extends Disposable {
8686

8787
const allTools: vscode.LanguageModelChatTool[] = [];
8888
for (const tool of vscode.lm.tools) {
89-
if (request.tools.has(tool.name) && request.tools.get(tool.name)) {
89+
if (request.tools.has(tool) && request.tools.get(tool)) {
9090
allTools.push(tool);
9191
} else if (tool.name.startsWith('github-pull-request')) {
9292
allTools.push(tool);

0 commit comments

Comments
 (0)