Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Default remote setting#110

Closed
matthewnitschke wants to merge 8 commits into
sourcegraph:masterfrom
matthewnitschke:default_remote_setting
Closed

Default remote setting#110
matthewnitschke wants to merge 8 commits into
sourcegraph:masterfrom
matthewnitschke:default_remote_setting

Conversation

@matthewnitschke

Copy link
Copy Markdown

Problem

When multiple remotes are returned from git remote, this extension defaults to using the first returned remote name. This can be frustrating when the first remote name is not the desired remote to use.

Changes

Adds a sourcegraph.defaultRemote setting to enable specifying a static remote that can be use. When sourcegraph.defaultRemote is null (the default setting value), the old remote logic is used.

Comment thread .vscode/tasks.json
Comment on lines +12 to +16
{
"type": "npm",
"label": "build",
"script": "build",
},

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running the Launch Setting task resulted in an error. Adding this task fixed the issue

@matthewnitschke

Copy link
Copy Markdown
Author

@nicksnyder @felixfbecker Could someone take a look at this?

Comment thread src/git.ts Outdated
@nicksnyder nicksnyder requested review from a team, felixfbecker and marekweb and removed request for a team November 12, 2020 23:02
@nicksnyder

Copy link
Copy Markdown
Contributor

seems safe to merge, @sourcegraph/web can you own this?

@matthewnitschke

Copy link
Copy Markdown
Author

Closing as I feel: #122 is a better solution to the problem

@nicksnyder Can someone take a look at that pr?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants