File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 832832 "commands" : [
833833 {
834834 "command" : " githubpr.remoteAgent" ,
835- "title" : " Remote agent integration " ,
835+ "title" : " %command.githubpr.remoteAgent.title% " ,
836836 "enablement" : " config.githubPullRequests.codingAgent.enabled"
837837 },
838838 {
Original file line number Diff line number Diff line change 172172 "view.github.active.pull.request.name" : " Review Pull Request" ,
173173 "view.github.active.pull.request.welcome.name" : " Active Pull Request" ,
174174 "command.pull.request.category" : " GitHub Pull Requests" ,
175+ "command.githubpr.remoteAgent.title" : " Remote agent integration" ,
175176 "command.pr.create.title" : " Create Pull Request" ,
176177 "command.pr.pick.title" : " Checkout Pull Request" ,
177178 "command.pr.openChanges.title" : " Open Changes" ,
Original file line number Diff line number Diff line change 55
66import fetch from 'cross-fetch' ;
77import JSZip from 'jszip' ;
8+ import * as vscode from 'vscode' ;
89import { AuthProvider } from '../common/authentication' ;
910import { Remote } from '../common/remote' ;
1011import { OctokitCommon } from './common' ;
@@ -68,21 +69,21 @@ export class CopilotApi {
6869 private formatRemoteAgentJobError ( status : number ) {
6970 switch ( status ) {
7071 case 400 :
71- return 'Bad request' ;
72+ return vscode . l10n . t ( 'Bad request' ) ;
7273 case 401 :
73- return 'Unauthorized' ;
74+ return vscode . l10n . t ( 'Unauthorized' ) ;
7475 case 402 :
75- return 'Premium request quota exceeded' ;
76+ return vscode . l10n . t ( 'Premium request quota exceeded' ) ;
7677 case 403 :
77- return 'GitHub Coding Agent is not enabled for this repository' ;
78+ return vscode . l10n . t ( 'GitHub Coding Agent is not enabled for this repository' ) ;
7879 case 404 :
79- return 'Repository not found' ;
80+ return vscode . l10n . t ( 'Repository not found' ) ;
8081 case 409 :
81- return 'A Coding Agent pull request already exists' ;
82+ return vscode . l10n . t ( 'A Coding Agent pull request already exists' ) ;
8283 case 500 :
83- return 'Server error' ;
84+ return vscode . l10n . t ( 'Server error' ) ;
8485 default :
85- return ` Error: ${ status } ` ;
86+ return vscode . l10n . t ( ' Error: {0}' , status ) ;
8687 }
8788 }
8889
You can’t perform that action at this time.
0 commit comments