Add option to remove GitHub Pull Request as Default #15681
IssuePositron currently ships with the GitHub Pull Requests and Issues extension installed by default. We use an in-house Git server because our repositories contain data that has legal restrictions on how, and particularly WHERE, it can be held. For that reason, we deliberately do not want GitHub in our development environment. We can disable or uninstall the GitHub Pull Requests extension, but subsequent Positron updates automatically enable/install it again. This has caused an issue where a new repository without an origin defined defaulted to GitHub sync and prompted a sign in from a user with a GitHub account. Proposed fixPositron should provide a way to permanently opt out of the bundled GitHub integration, through either:
|
Replies: 2 comments 1 reply
|
There is a detail here that probably explains why disabling the extension did not prevent the incident you describe: there are two separate GitHub components in Positron, and the sign-in prompt almost certainly came from the other one. The one you disabled is bundled from upstream, declared in {
"name": "GitHub.vscode-pull-request-github",
"version": "0.162.0",
"repo": "https://github.com/Microsoft/vscode-pull-request-github",Those are fetched at build time and shipped inside the application directory, which is also why deleting it does not stick — an update replaces that directory wholesale. But "a new repository without an origin defaulted to GitHub sync" is the publish flow, and that lives in a first-party extension held in the Positron tree itself, { "command": "github.publish", "title": "%command.publish%" }That one is not a bundled third-party extension at all — it is part of the product, like the Git extension. So a policy that only removes On the immediate need, the closest existing lever is export const AllowedExtensionsConfigKey = 'extensions.allowed';The useful part for your situation is that it is not merely a user setting — I would test whether it reaches built-in extensions before relying on it, though. |
|
Thanks for this question, @cjdbarlow! We do provide a way to do this. Check out the docs at: https://positron.posit.co/extensions.html#bootstrapped-extensions You'll want to use {
"extensions.allowed": {
"GitHub.vscode-pull-request-github": false,
"*": true
}
} |
Thanks for this question, @cjdbarlow! We do provide a way to do this. Check out the docs at: https://positron.posit.co/extensions.html#bootstrapped-extensions
You'll want to use
extensions.allowedand do something like this:{ "extensions.allowed": { "GitHub.vscode-pull-request-github": false, "*": true } }