瀏覽代碼

Enables virtual repositories by default

main
Eric Amodio 2 年之前
父節點
當前提交
df71ffed19
共有 3 個檔案被更改,包括 11 行新增20 行删除
  1. +7
    -14
      package.json
  2. +3
    -5
      src/config.ts
  3. +1
    -1
      src/env/node/providers.ts

+ 7
- 14
package.json 查看文件

@ -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 查看文件

@ -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 查看文件

@ -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;

Loading…
取消
儲存