microsoft/vscode · error · Error
{0}
Error message
{0} What it means
Error "{0}" thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts:1655
const chatResource = metadata.chatContext.chatSessionContext?.chatSessionItem?.resource;
const selectedRepository = chatResource ? this.sessionRepositoryMap.get(chatResource) : undefined;
const base_ref: string = await (async () => {
const res = await this.checkBaseBranchPresentOnRemote(selectedRepository);
if (!res) {
// Unexpected
throw new Error(vscode.l10n.t('Repo base branch is not detected on remote. Push your branch and try again.'));
}
return (res?.missingOnRemote || !res?.baseRef) ? res.repoDefaultBranch : res?.baseRef;
})();
stream.progress(vscode.l10n.t('Validating branch base branch exists on remote'));
// Now trigger delegation
try {
await this.delegate(request, stream, context, token, metadata, base_ref, head_ref);
} catch (error) {
this.logService.error(`Failure in delegation: ${error}`);
throw new Error(vscode.l10n.t('{0}', (error instanceof Error ? error.message : String(error))));
}
}
/**
* Handle a click on the chat input "Create pull request" toolbar action (contributed to
* `chat/input/editing/sessionToolbar` and registered as
* {@link CREATE_PULL_REQUEST_FOR_TASK_COMMAND_ID}). The toolbar passes the session resource
* as the first argument, from which we resolve the task id. Shows a "Creating pull request"
* progress notification while the Task API's `create-pr` endpoint runs and the PR is reflected
* on the task; on success it shows no further message and instead flips the toolbar action to
* "Open pull request" (which opens the PR in the browser) by updating the context keys in place.
* The session list refreshes in place after the pull request is reflected on the task.
*/
private async handleCreatePullRequestForTaskCommand(sessionItemOrResource?: vscode.ChatSessionItem | vscode.Uri): Promise<void> {
const backend = this._backend;
const resource = sessionItemOrResource instanceof vscode.Uri ? sessionItemOrResource : sessionItemOrResource?.resource;
const taskId = resource ? SessionIdForTask.parse(resource)?.taskId : undefined;
if (!taskId) {View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts:1655 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/668b366178536c50.
Report an issue: GitHub.