Browse Source

Enables virtual repositories by default

main
Eric Amodio 2 years ago
parent
commit
df71ffed19
3 changed files with 11 additions and 20 deletions
  1. +7
    -14
      package.json
  2. +3
    -5
      src/config.ts
  3. +1
    -1
      src/env/node/providers.ts

+ 7
- 14
package.json View File

@ -3251,25 +3251,18 @@
"scope": "window", "scope": "window",
"order": 50 "order": 50
}, },
"gitlens.virtualRepositories.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to enable virtual repositories support",
"scope": "window",
"order": 70
},
"gitlens.insiders": { "gitlens.insiders": {
"deprecationMessage": "Deprecated. Use the Insiders edition of GitLens instead", "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" "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": { "configurationDefaults": {

+ 3
- 5
src/config.ts View File

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

+ 1
- 1
src/env/node/providers.ts View File

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

Loading…
Cancel
Save