Skip to content

Commit 6849cc1

Browse files
Fix localization string (#1789)
Can't have templates in an l10n.t. cc @joshspicer
1 parent c66f083 commit 6849cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ export class CopilotCloudSessionsProvider extends Disposable implements vscode.C
11511151
const response = await this._octoKitService.postCopilotAgentJob(repoId.org, repoId.repo, JOBS_API_VERSION, payload);
11521152
if (!this.validateRemoteAgentJobResponse(response)) {
11531153
const statusCode = response?.status;
1154-
return { error: vscode.l10n.t(`Received invalid response ${statusCode ? statusCode + ' ' : ''}from cloud agent.`), innerError: `Response ${JSON.stringify(response)}`, state: 'error' };
1154+
return { error: vscode.l10n.t('Received invalid response {0}from cloud agent.', statusCode ? statusCode + ' ' : ''), innerError: `Response ${JSON.stringify(response)}`, state: 'error' };
11551155
}
11561156
// For v1 API, we need to fetch the job details to get the PR info
11571157
// Since the PR might not be created immediately, we need to poll for it

0 commit comments

Comments
 (0)