We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6249eb7 commit 6d79813Copy full SHA for 6d79813
src/commands/copyDeepLink.ts
@@ -106,8 +106,11 @@ export class CopyDeepLinkCommand extends ActiveEditorCommand {
106
try {
107
let chosenRemote;
108
const remotes = await this.container.git.getRemotes(repoPath, { sort: true });
109
+ const defaultRemote = remotes.find(r => r.default);
110
if (args.remote && !args.prePickRemote) {
111
chosenRemote = remotes.find(r => r.name === args?.remote);
112
+ } else if (defaultRemote != null) {
113
+ chosenRemote = defaultRemote;
114
} else {
115
const pick = await showRemotePicker(
116
`Copy Link to ${deepLinkTypeToString(type)}`,
0 commit comments