Skip to content

Commit d734150

Browse files
authored
More descriptive tool names (#8650)
1 parent 71e6306 commit d734150

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3961,17 +3961,17 @@
39613961
"when": "config.githubPullRequests.experimental.chat"
39623962
},
39633963
{
3964-
"name": "github-pull-request_activePullRequest",
3964+
"name": "github-pull-request_currentActivePullRequest",
39653965
"tags": [
39663966
"github",
39673967
"pull request"
39683968
],
39693969
"toolReferenceName": "activePullRequest",
3970-
"displayName": "%languageModelTools.github-pull-request_activePullRequest.displayName%",
3970+
"displayName": "%languageModelTools.github-pull-request_currentActivePullRequest.displayName%",
39713971
"modelDescription": "Get comprehensive information about the active GitHub pull request (PR). The active PR is the one that is currently checked out. This includes the PR title, full description, list of changed files, review comments, and PR state. For PRs created by Copilot, it also includes the session logs which indicate the development process and decisions made by the coding agent. Does NOT include status checks/CI results; use the pullRequestStatusChecks tool instead. When asked about the active or current pull request, do this first! Use this tool for any request related to \"current changes,\" \"pull request details,\" \"what changed,\" or similar queries even if the user does not explicitly mention \"pull request.\" When asked to use this tool, ALWAYS use it.",
39723972
"icon": "$(git-pull-request)",
39733973
"canBeReferencedInPrompt": true,
3974-
"userDescription": "%languageModelTools.github-pull-request_activePullRequest.description%",
3974+
"userDescription": "%languageModelTools.github-pull-request_currentActivePullRequest.description%",
39753975
"when": "config.githubPullRequests.experimental.chat",
39763976
"inputSchema": {
39773977
"type": "object",
@@ -4030,17 +4030,17 @@
40304030
"when": "config.githubPullRequests.experimental.chat"
40314031
},
40324032
{
4033-
"name": "github-pull-request_openPullRequest",
4033+
"name": "github-pull-request_pullRequestInViewport",
40344034
"tags": [
40354035
"github",
40364036
"pull request"
40374037
],
40384038
"toolReferenceName": "openPullRequest",
4039-
"displayName": "%languageModelTools.github-pull-request_openPullRequest.displayName%",
4039+
"displayName": "%languageModelTools.github-pull-request_pullRequestInViewport.displayName%",
40404040
"modelDescription": "Get comprehensive information about the GitHub pull request (PR) which is currently visible, but not necessarily checked out. This is the pull request that the user is currently viewing. This includes the PR title, full description, list of changed files, review comments, and PR state. For PRs created by Copilot, it also includes the session logs which indicate the development process and decisions made by the coding agent. Does NOT include status checks/CI results; use the pullRequestStatusChecks tool instead. When asked about the currently open pull request, do this first! Use this tool for any request related to \"pull request details,\" \"what changed,\" or similar queries even if the user does not explicitly mention \"pull request.\" When asked to use this tool, ALWAYS use it.",
40414041
"icon": "$(git-pull-request)",
40424042
"canBeReferencedInPrompt": true,
4043-
"userDescription": "%languageModelTools.github-pull-request_openPullRequest.description%",
4043+
"userDescription": "%languageModelTools.github-pull-request_pullRequestInViewport.description%",
40444044
"when": "config.githubPullRequests.experimental.chat"
40454045
},
40464046
{

package.nls.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,12 @@
440440
"languageModelTools.github-pull-request_doSearch.displayName": "Execute a GitHub search",
441441
"languageModelTools.github-pull-request_doSearch.description": "Search for GitHub issues and pull requests.",
442442
"languageModelTools.github-pull-request_renderIssues.displayName": "Render issue items in a markdown table",
443-
"languageModelTools.github-pull-request_activePullRequest.displayName": "Active Pull Request",
444-
"languageModelTools.github-pull-request_activePullRequest.description": "Get information about the active GitHub pull request. This information includes: comments, files changed, pull request title + description, and pull request state.",
443+
"languageModelTools.github-pull-request_currentActivePullRequest.displayName": "Active Pull Request",
444+
"languageModelTools.github-pull-request_currentActivePullRequest.description": "Get information about the active GitHub pull request. This information includes: comments, files changed, pull request title + description, and pull request state.",
445445
"languageModelTools.github-pull-request_pullRequestStatusChecks.displayName": "Pull Request Status Checks",
446446
"languageModelTools.github-pull-request_pullRequestStatusChecks.description": "Get the status checks and CI results for a GitHub pull request.",
447-
"languageModelTools.github-pull-request_openPullRequest.displayName": "Open Pull Request",
448-
"languageModelTools.github-pull-request_openPullRequest.description": "Get information about the open GitHub pull request. This information includes: comments, files changed, pull request title + description, and pull request state.",
447+
"languageModelTools.github-pull-request_pullRequestInViewport.displayName": "Open Pull Request",
448+
"languageModelTools.github-pull-request_pullRequestInViewport.description": "Get information about the open GitHub pull request. This information includes: comments, files changed, pull request title + description, and pull request state.",
449449
"languageModelTools.github-pull-request_resolveReviewThread.displayName": "Resolve Review Thread",
450450
"languageModelTools.github-pull-request_resolveReviewThread.description": "Resolve a review thread on the active GitHub pull request.",
451451
"languageModelTools.github-pull-request_create_pull_request.displayName": "Create a GitHub pull request",

src/lm/skills/address-pr-comments/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Read the active pull request, identify unresolved review comments and feedback,
1818

1919
### 1. Read the Active PR
2020

21-
Call the `github-pull-request_activePullRequest` tool.
21+
Call the `github-pull-request_currentActivePullRequest` tool.
2222

2323
**Refresh logic**: Check whether a refresh is needed before reading:
2424
- Call the tool once *without* `refresh` to get the cached state

src/lm/tools/activePullRequestTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export abstract class PullRequestTool implements vscode.LanguageModelTool<FetchI
113113
}
114114

115115
export class ActivePullRequestTool extends PullRequestTool {
116-
public static readonly toolId = 'github-pull-request_activePullRequest';
116+
public static readonly toolId = 'github-pull-request_currentActivePullRequest';
117117

118118
protected _findActivePullRequest(): PullRequestModel | undefined {
119119
const folderManager = this.folderManagers.folderManagers.find((manager) => manager.activePullRequest);

src/lm/tools/openPullRequestTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { PullRequestModel } from '../../github/pullRequestModel';
1010
import { PullRequestOverviewPanel } from '../../github/pullRequestOverview';
1111

1212
export class OpenPullRequestTool extends PullRequestTool {
13-
public static readonly toolId = 'github-pull-request_openPullRequest';
13+
public static readonly toolId = 'github-pull-request_pullRequestInViewport';
1414

1515
protected _findActivePullRequest(): PullRequestModel | undefined {
1616
// First check if there's an active PR overview panel

0 commit comments

Comments
 (0)