We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aacead4 commit 2b6142dCopy full SHA for 2b6142d
1 file changed
src/github/copilotRemoteAgent.ts
@@ -397,6 +397,9 @@ export class CopilotRemoteAgentManager extends Disposable {
397
return;
398
}
399
400
+ // Sort so that origin is first if it exists
401
+ ghRemotes.sort((a, b) => (a.remoteName === 'origin' ? -1 : b.remoteName === 'origin' ? 1 : 0));
402
+
403
const result = await chooseItem<GitHubRemote>(
404
ghRemotes,
405
itemValue => `${itemValue.remoteName} (${itemValue.owner}/${itemValue.repositoryName})`,
0 commit comments