Skip to content

Commit 943ff5c

Browse files
authored
Lowercase 'coding agent' (microsoft/vscode#252727) (#7173)
1 parent 0abbc4a commit 943ff5c

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
{
7070
"id": "githubCodingAgent",
7171
"command": "githubpr.remoteAgent",
72-
"displayName": "GitHub Coding Agent",
73-
"description": "The GitHub Coding Agent.",
72+
"displayName": "GitHub Copilot coding agent",
73+
"description": "Copilot coding agent is a remote, autonomous software development agent. Developers delegate tasks to the agent, which iterates on pull requests based on feedback and reviews.",
7474
"followUpRegex": "open-pull-request-webview.*((%7B.*?%7D)|(\\{.*?\\}))",
7575
"when": "config.githubPullRequests.codingAgent.enabled && config.githubPullRequests.codingAgent.uiIntegration && copilotCodingAgentAssignable"
7676
}
@@ -3364,7 +3364,7 @@
33643364
"when": "config.githubPullRequests.codingAgent.enabled",
33653365
"icon": "resources/icons/copilot.svg",
33663366
"canBeReferencedInPrompt": true,
3367-
"toolReferenceName": "codingAgent",
3367+
"toolReferenceName": "copilotCodingAgent",
33683368
"userDescription": "%languageModelTools.github-pull-request_copilot-coding-agent.userDescription%",
33693369
"inputSchema": {
33703370
"type": "object",
@@ -3383,7 +3383,7 @@
33833383
},
33843384
"existingPullRequest": {
33853385
"type": "number",
3386-
"description": "The number of an existing pull request that is connected to the current Coding Agent task. Look in the history for this number. In the chat it may look like 'Coding agent will continue work in #17...'. In this example, return just '17'."
3386+
"description": "The number of an existing pull request related to the current coding agent task. Look in the chat history for this number. In the chat it may look like 'Coding agent will continue work in #17...'. In this example, you should return '17'."
33873387
}
33883388
}
33893389
}

package.nls.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"{Locked='](command:workbench.action.setLogLevel)'}"
2121
]
2222
},
23-
"githubPullRequests.codingAgent.description": "Enables integration with the asynchronous GitHub Coding Agent. The '#codingAgent' tool will be available in agent mode when this setting is enabled.",
24-
"githubPullRequests.codingAgent.uiIntegration.description": "Enables UI integration within VS Code to create new Coding Agent sessions.",
25-
"githubPullRequests.codingAgent.autoCommitAndPush.description": "Allow automatic git operations (commit, push) to be performed when starting a Coding Agent session",
23+
"githubPullRequests.codingAgent.description": "Enables integration with the asynchronous Copilot coding agent. The '#copilotCodingAgent' tool will be available in agent mode when this setting is enabled.",
24+
"githubPullRequests.codingAgent.uiIntegration.description": "Enables UI integration within VS Code to create new coding agent sessions.",
25+
"githubPullRequests.codingAgent.autoCommitAndPush.description": "Allow automatic git operations (commit, push) to be performed when starting a coding agent session",
2626
"githubPullRequests.remotes.markdownDescription": "List of remotes, by name, to fetch pull requests from.",
2727
"githubPullRequests.queries.markdownDescription": "Specifies what queries should be used in the GitHub Pull Requests tree. All queries are made against **the currently opened repos**. Each query object has a `label` that will be shown in the tree and a search `query` using [GitHub search syntax](https://help.github.com/en/articles/understanding-the-search-syntax). The following variables can be used: \n - `${user}` will resolve to the currently logged in user \n - `${owner}` will resolve to the owner of the current repository, ex. `microsoft` in `microsoft/vscode` \n - `${repository}` will resolve to the repository name, ex. `vscode` in `microsoft/vscode` \n - `${today-Nd}`, where `N` is the number of days ago, will resolve to a date, ex. `2025-01-04`. \n\n By default these queries define the categories \"Waiting For My Review\", \"Assigned To Me\" and \"Created By Me\". If you want to preserve these, make sure they are still in the array when you modify the setting.",
2828
"githubPullRequests.queries.label.description": "The label to display for the query in the Pull Requests tree",
@@ -379,6 +379,6 @@
379379
"languageModelTools.github-pull-request_renderIssues.displayName": "Render issue items in a markdown table",
380380
"languageModelTools.github-pull-request_activePullRequest.displayName": "Active Pull Request",
381381
"languageModelTools.github-pull-request_activePullRequest.description": "Get information about the active GitHub pull request. This information includes: comments, files changed, pull request title + description, pull request state, and pull request status checks/CI.",
382-
"languageModelTools.github-pull-request_copilot-coding-agent.displayName": "Copilot Coding Agent",
382+
"languageModelTools.github-pull-request_copilot-coding-agent.displayName": "Copilot coding agent",
383383
"languageModelTools.github-pull-request_copilot-coding-agent.userDescription": "Completes the provided task using an asynchronous coding agent. Use when the user wants copilot continue completing a task in the background or asynchronously. Launch an autonomous GitHub Copilot agent to work on coding tasks in the background. The agent will create a new branch, implement the requested changes, and open a pull request with the completed work."
384384
}

src/github/copilotApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ export class CopilotApi {
7979
case 402:
8080
return vscode.l10n.t('[Premium request]({0}) quota exceeded', PREMIUM_REQUESTS_URL);
8181
case 403:
82-
return vscode.l10n.t('[GitHub Coding Agent]({0}) is not enabled for repository \'{1}\'', LEARN_MORE_URL, repoSlug);
82+
return vscode.l10n.t('[GitHub coding agent]({0}) is not enabled for repository \'{1}\'', LEARN_MORE_URL, repoSlug);
8383
case 404:
8484
return vscode.l10n.t('Repository \'{0}\' not found', repoSlug);
8585
case 409:
86-
return vscode.l10n.t('A Coding Agent pull request already exists');
86+
return vscode.l10n.t('A coding agent pull request already exists');
8787
case 500:
8888
Logger.error(`Server error in remote agent job: ${await response.text()}`, CopilotApi.ID);
8989
return vscode.l10n.t('Server error. Please try again later.');

src/github/copilotRemoteAgent.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface ICopilotRemoteAgentCommandArgs {
3838
followup?: string;
3939
}
4040

41-
const LEARN_MORE = vscode.l10n.t('Learn about Coding Agent');
41+
const LEARN_MORE = vscode.l10n.t('Learn about coding agent');
4242
// Without Pending Changes
4343
const CONTINUE = vscode.l10n.t('Continue');
4444
// With Pending Changes
@@ -291,7 +291,7 @@ export class CopilotRemoteAgentManager extends Disposable {
291291
};
292292

293293
let autoPushAndCommit = false;
294-
const message = vscode.l10n.t('GitHub Coding Agent will continue your work in \'{0}\'', repoName);
294+
const message = vscode.l10n.t('Copilot coding agent will continue your work in \'{0}\'', repoName);
295295
if (source !== 'prompt' && hasChanges && this.autoCommitAndPushEnabled()) {
296296
const modalResult = await vscode.window.showInformationMessage(
297297
message,
@@ -318,7 +318,7 @@ export class CopilotRemoteAgentManager extends Disposable {
318318
}
319319
} else {
320320
const modalResult = await vscode.window.showInformationMessage(
321-
(source !== 'prompt' ? message : vscode.l10n.t('GitHub Coding Agent will implement the specification outlined in this prompt file')),
321+
(source !== 'prompt' ? message : vscode.l10n.t('Copilot coding agent will implement the specification outlined in this prompt file')),
322322
{
323323
modal: true,
324324
},
@@ -374,12 +374,12 @@ export class CopilotRemoteAgentManager extends Disposable {
374374
const terminal = vscode.window.createTerminal({
375375
name: 'GitHub Coding Agent',
376376
cwd: repository.rootUri.fsPath,
377-
message: vscode.l10n.t('Commit your changes to continue Coding Agent session')
377+
message: vscode.l10n.t('Commit your changes to continue coding agent session')
378378
});
379379

380380
// Show terminal and send commit command
381381
terminal.show();
382-
terminal.sendText(`# Complete this commit to continue with your Coding Agent session. Ctrl+C to cancel.`);
382+
terminal.sendText(`# Complete this commit to continue with your coding agent session. Ctrl+C to cancel.`);
383383
terminal.sendText(`git commit -m "${commitMessage}"`);
384384

385385
let disposed = false;
@@ -457,7 +457,7 @@ export class CopilotRemoteAgentManager extends Disposable {
457457
const asyncBranch = `copilot/vscode${Date.now()}`;
458458
try {
459459
await repository.createBranch(asyncBranch, true);
460-
const commitMessage = 'Checkpoint for VS Code Coding Agent Session';
460+
const commitMessage = 'Checkpoint from VS Code for coding agent session';
461461
try {
462462
await repository.commit(commitMessage, { all: true });
463463
if (repository.state.HEAD?.name !== asyncBranch || repository.state.workingTreeChanges.length > 0 || repository.state.indexChanges.length > 0) {

src/lm/tools/copilotRemoteAgentTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class CopilotRemoteAgentTool implements vscode.LanguageModelTool<CopilotR
3030
// Check if the coding agent is available (enabled and assignable)
3131
const isAvailable = await this.manager.isAvailable();
3232
if (!isAvailable) {
33-
throw new Error(vscode.l10n.t('GitHub Coding Agent is not available for this repository. Make sure the agent is enabled and assignable to this repository.'));
33+
throw new Error(vscode.l10n.t('Copilot coding agent is not available for this repository. Make sure the agent is enabled and assignable to this repository.'));
3434
}
3535

3636
const targetRepo = await this.manager.repoInfo();

0 commit comments

Comments
 (0)