Selaa lähdekoodia

Enables virtual repositories by default

main
Eric Amodio 2 vuotta sitten
vanhempi
commit
df71ffed19
3 muutettua tiedostoa jossa 11 lisäystä ja 20 poistoa
  1. +7
    -14
      package.json
  2. +3
    -5
      src/config.ts
  3. +1
    -1
      src/env/node/providers.ts

+ 7
- 14
package.json Näytä tiedosto

@ -3251,25 +3251,18 @@
"scope": "window",
"order": 50
},
"gitlens.virtualRepositories.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to enable virtual repositories support",
"scope": "window",
"order": 70
},
"gitlens.insiders": {
"deprecationMessage": "Deprecated. Use the Insiders edition of GitLens instead",
"markdownDeprecationMessage": "Deprecated. Use the [Insiders edition](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens-insiders) of GitLens instead"
}
}
},
{
"id": "experimental",
"title": "Experimental",
"order": 9999,
"properties": {
"gitlens.experimental.virtualRepositories.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to enable the experimental virtual repositories support",
"scope": "window",
"order": 0
}
}
}
],
"configurationDefaults": {

+ 3
- 5
src/config.ts Näytä tiedosto

@ -41,11 +41,6 @@ export interface Config {
defaultGravatarsStyle: GravatarDefaultStyle;
defaultTimeFormat: DateTimeFormat | string | null;
detectNestedRepositories: boolean;
experimental: {
virtualRepositories: {
enabled: boolean;
};
};
fileAnnotations: {
command: string | null;
};
@ -148,6 +143,9 @@ export interface Config {
enabled: boolean;
};
views: ViewsConfig;
virtualRepositories: {
enabled: boolean;
};
visualHistory: {
queryLimit: number;
};

+ 1
- 1
src/env/node/providers.ts Näytä tiedosto

@ -26,7 +26,7 @@ export async function getSupportedGitProviders(container: Container): Promise
new VslsGitProvider(container, new VslsGit(git)),
];
if (container.config.experimental.virtualRepositories.enabled) {
if (container.config.virtualRepositories.enabled) {
const GitHubGitProvider = (
await import(/* webpackChunkName: "github" */ '../../premium/github/githubGitProvider')
).GitHubGitProvider;

Ladataan…
Peruuta
Tallenna