Kaynağa Gözat

Switches to negative to avoid delayed view loading

main
Eric Amodio 4 yıl önce
ebeveyn
işleme
11277e4c76
3 değiştirilmiş dosya ile 12 ekleme ve 10 silme
  1. +10
    -10
      package.json
  2. +1
    -0
      src/constants.ts
  3. +1
    -0
      src/extension.ts

+ 10
- 10
package.json Dosyayı Görüntüle

@ -7545,21 +7545,21 @@
{
"id": "gitlens.views.repositories",
"name": "Repositories",
"when": "gitlens:enabled && config.gitlens.views.repositories.enabled",
"when": "!gitlens:disabled && config.gitlens.views.repositories.enabled",
"contextualTitle": "GitLens",
"icon": "images/views/repositories.svg"
},
{
"id": "gitlens.views.commits",
"name": "Commits",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/commits.svg"
},
{
"id": "gitlens.views.fileHistory",
"name": "File History",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/history.svg"
},
@ -7574,14 +7574,14 @@
{
"id": "gitlens.views.branches",
"name": "Branches",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/branches.svg"
},
{
"id": "gitlens.views.remotes",
"name": "Remotes",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/remotes.svg",
"visibility": "collapsed"
@ -7589,7 +7589,7 @@
{
"id": "gitlens.views.stashes",
"name": "Stashes",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/stashes.svg",
"visibility": "collapsed"
@ -7597,7 +7597,7 @@
{
"id": "gitlens.views.tags",
"name": "Tags",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/tags.svg",
"visibility": "collapsed"
@ -7605,7 +7605,7 @@
{
"id": "gitlens.views.contributors",
"name": "Contributors",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/contributors.svg",
"visibility": "collapsed"
@ -7613,7 +7613,7 @@
{
"id": "gitlens.views.search",
"name": "Search Commits",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/search.svg",
"visibility": "collapsed"
@ -7621,7 +7621,7 @@
{
"id": "gitlens.views.compare",
"name": "Compare Commits",
"when": "gitlens:enabled",
"when": "!gitlens:disabled",
"contextualTitle": "GitLens",
"icon": "images/views/compare.svg",
"visibility": "collapsed"

+ 1
- 0
src/constants.ts Dosyayı Görüntüle

@ -34,6 +34,7 @@ export enum CommandContext {
ActiveFileStatus = 'gitlens:activeFileStatus',
AnnotationStatus = 'gitlens:annotationStatus',
CanToggleCodeLens = 'gitlens:canToggleCodeLens',
Disabled = 'gitlens:disabled',
Enabled = 'gitlens:enabled',
HasRemotes = 'gitlens:hasRemotes',
Key = 'gitlens:key',

+ 1
- 0
src/extension.ts Dosyayı Görüntüle

@ -44,6 +44,7 @@ export async function activate(context: ExtensionContext) {
if (!enabled) {
Logger.log(`GitLens (v${gitlensVersion}) was NOT activated -- "git.enabled": false`);
void setCommandContext(CommandContext.Enabled, false);
void setCommandContext(CommandContext.Disabled, true);
void Messages.showGitDisabledErrorMessage();

Yükleniyor…
İptal
Kaydet