@@ -2,10 +2,11 @@ import type { AnthropicModels } from './ai/anthropicProvider';
22import type { GeminiModels } from './ai/geminiProvider' ;
33import type { OpenAIModels } from './ai/openaiProvider' ;
44import type { VSCodeAIModels } from './ai/vscodeProvider' ;
5- import type { ViewShowBranchComparison } from './config' ;
5+ import type { AnnotationStatus } from './annotations/annotationProvider' ;
6+ import type { FileAnnotationType , ViewShowBranchComparison } from './config' ;
67import type { Environment } from './container' ;
78import type { StoredSearchQuery } from './git/search' ;
8- import type { Subscription , SubscriptionState } from './plus/gk/account/subscription' ;
9+ import type { Subscription , SubscriptionPlanId , SubscriptionState } from './plus/gk/account/subscription' ;
910import type { Integration } from './plus/integrations/integration' ;
1011import type { IntegrationId , IssueIntegrationId } from './plus/integrations/providers/models' ;
1112import type { TelemetryEventData } from './telemetry/telemetry' ;
@@ -669,46 +670,46 @@ export type TreeViewNodeTypes =
669670 | 'worktree'
670671 | 'worktrees' ;
671672
672- export type ContextKeys =
673- | `${ typeof extensionPrefix } :action:${ string } `
674- | `${typeof extensionPrefix } :key:${ Keys } `
675- | `${ typeof extensionPrefix } :webview:${ WebviewTypes | CustomEditorTypes } :visible`
676- | `${ typeof extensionPrefix } :webviewView:${ WebviewViewTypes } :visible`
677- | `${ typeof extensionPrefix } :activeFileStatus`
678- | `${ typeof extensionPrefix } :annotationStatus`
679- | `${ typeof extensionPrefix } :debugging`
680- | `${ typeof extensionPrefix } :disabledToggleCodeLens`
681- | `${ typeof extensionPrefix } :disabled`
682- | `${ typeof extensionPrefix } : enabled`
683- | `${ typeof extensionPrefix } :gk:hasOrganizations`
684- | `${ typeof extensionPrefix } :gk:organization:ai:enabled`
685- | `${ typeof extensionPrefix } :gk:organization:drafts:byob`
686- | `${ typeof extensionPrefix } :gk:organization:drafts:enabled`
687- | `${ typeof extensionPrefix } :hasConnectedRemotes`
688- | `${ typeof extensionPrefix } :hasRemotes`
689- | `${ typeof extensionPrefix } :hasRichRemotes`
690- | `${ typeof extensionPrefix } :hasVirtualFolders`
691- | `${ typeof extensionPrefix } :prerelease`
692- | `${ typeof extensionPrefix } :readonly`
693- | `${ typeof extensionPrefix } :untrusted`
694- | `${ typeof extensionPrefix } :views:canCompare`
695- | `${ typeof extensionPrefix } :views:canCompare:file`
696- | `${ typeof extensionPrefix } :views:commits:filtered`
697- | `${ typeof extensionPrefix } :views:commits:hideMergeCommits`
698- | `${ typeof extensionPrefix } :views:contributors :hideMergeCommits`
699- | `${ typeof extensionPrefix } :views:fileHistory:canPin`
700- | `${ typeof extensionPrefix } :views:fileHistory:cursorFollowing`
701- | `${ typeof extensionPrefix } :views:fileHistory:editorFollowing`
702- | `${ typeof extensionPrefix } :views:lineHistory :editorFollowing`
703- | `${ typeof extensionPrefix } :views:patchDetails:mode`
704- | `${ typeof extensionPrefix } :views:pullRequest:visible`
705- | `${ typeof extensionPrefix } :views:repositories:autoRefresh`
706- | `${ typeof extensionPrefix } :vsls`
707- | `${ typeof extensionPrefix } :plus`
708- | `${ typeof extensionPrefix } :plus:disallowedRepos`
709- | `${ typeof extensionPrefix } :plus:enabled`
710- | `${ typeof extensionPrefix } :plus:required`
711- | `${ typeof extensionPrefix } :plus:state` ;
673+ export type ContextKeys = {
674+ 'gitlens:activeFileStatus' : string ;
675+ 'gitlens:annotationStatus' : AnnotationStatus | `${AnnotationStatus } +${ FileAnnotationType } ` ;
676+ 'gitlens:debugging' : boolean ;
677+ 'gitlens:disabled' : boolean ;
678+ 'gitlens:disabledToggleCodeLens' : boolean ;
679+ 'gitlens:enabled' : boolean ;
680+ 'gitlens:gk:hasOrganizations' : boolean ;
681+ 'gitlens:gk:organization:ai:enabled' : boolean ;
682+ 'gitlens:gk:organization:drafts:byob' : boolean ;
683+ 'gitlens:gk:organization:drafts: enabled' : boolean ;
684+ 'gitlens:hasConnectedRemotes' : boolean ;
685+ 'gitlens:hasRemotes' : boolean ;
686+ 'gitlens:hasRichRemotes' : boolean ;
687+ 'gitlens:hasVirtualFolders' : boolean ;
688+ 'gitlens:plus' : SubscriptionPlanId ;
689+ 'gitlens:plus:disallowedRepos' : string [ ] ;
690+ 'gitlens:plus:enabled' : boolean ;
691+ 'gitlens:plus:required' : boolean ;
692+ 'gitlens:plus:state' : SubscriptionState ;
693+ 'gitlens:prerelease' : boolean ;
694+ 'gitlens:readonly' : boolean ;
695+ 'gitlens:untrusted' : boolean ;
696+ 'gitlens :views:canCompare' : boolean ;
697+ 'gitlens :views:canCompare:file' : boolean ;
698+ 'gitlens :views:commits:filtered' : boolean ;
699+ 'gitlens :views:commits :hideMergeCommits' : boolean ;
700+ 'gitlens :views:contributors:hideMergeCommits' : boolean ;
701+ 'gitlens :views:fileHistory:canPin' : boolean ;
702+ 'gitlens :views:fileHistory:cursorFollowing' : boolean ;
703+ 'gitlens :views:fileHistory :editorFollowing' : boolean ;
704+ 'gitlens :views:lineHistory:editorFollowing' : boolean ;
705+ 'gitlens :views:patchDetails:mode' : 'create' | 'view' ;
706+ 'gitlens :views:pullRequest:visible' : boolean ;
707+ 'gitlens:views:repositories:autoRefresh' : boolean ;
708+ 'gitlens:vsls' : boolean | 'host' | 'guest' ;
709+ } & Record < `gitlens:action:${ string } ` , number > &
710+ Record < `gitlens:key:${ Keys } ` , boolean > &
711+ Record < `gitlens:webview:${ WebviewTypes | CustomEditorTypes } :visible` , boolean > &
712+ Record < `gitlens:webviewView:${ WebviewViewTypes } :visible` , boolean > ;
712713
713714export type CoreCommands =
714715 | 'cursorMove'
0 commit comments