|
|
@ -1,5 +1,97 @@ |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
export interface Config { |
|
|
|
blame: { |
|
|
|
avatars: boolean; |
|
|
|
compact: boolean; |
|
|
|
dateFormat: string | null; |
|
|
|
format: string; |
|
|
|
heatmap: { |
|
|
|
enabled: boolean; |
|
|
|
location: 'left' | 'right'; |
|
|
|
}; |
|
|
|
highlight: { |
|
|
|
enabled: boolean; |
|
|
|
locations: HighlightLocations[]; |
|
|
|
}; |
|
|
|
ignoreWhitespace: boolean; |
|
|
|
separateLines: boolean; |
|
|
|
toggleMode: AnnotationsToggleMode; |
|
|
|
}; |
|
|
|
currentLine: { |
|
|
|
scrollable: boolean; |
|
|
|
dateFormat: string | null; |
|
|
|
enabled: boolean; |
|
|
|
format: string; |
|
|
|
}; |
|
|
|
codeLens: CodeLensConfig; |
|
|
|
debug: boolean; |
|
|
|
defaultDateFormat: string | null; |
|
|
|
defaultDateStyle: DateStyle; |
|
|
|
defaultGravatarsStyle: GravatarDefaultStyle; |
|
|
|
heatmap: { |
|
|
|
ageThreshold: number; |
|
|
|
coldColor: string; |
|
|
|
hotColor: string; |
|
|
|
toggleMode: AnnotationsToggleMode; |
|
|
|
}; |
|
|
|
hovers: { |
|
|
|
annotations: { |
|
|
|
changes: boolean; |
|
|
|
details: boolean; |
|
|
|
enabled: boolean; |
|
|
|
over: 'line' | 'annotation'; |
|
|
|
}; |
|
|
|
currentLine: { |
|
|
|
changes: boolean; |
|
|
|
details: boolean; |
|
|
|
enabled: boolean; |
|
|
|
over: 'line' | 'annotation'; |
|
|
|
}; |
|
|
|
avatars: boolean; |
|
|
|
enabled: boolean; |
|
|
|
}; |
|
|
|
insiders: boolean; |
|
|
|
keymap: KeyMap; |
|
|
|
menus: boolean | MenuConfig; |
|
|
|
mode: { |
|
|
|
active: string; |
|
|
|
statusBar: { |
|
|
|
enabled: boolean; |
|
|
|
alignment: 'left' | 'right'; |
|
|
|
}; |
|
|
|
}; |
|
|
|
modes: { [key: string]: ModeConfig }; |
|
|
|
outputLevel: LogLevel; |
|
|
|
recentChanges: { |
|
|
|
highlight: { |
|
|
|
locations: HighlightLocations[]; |
|
|
|
}; |
|
|
|
toggleMode: AnnotationsToggleMode; |
|
|
|
}; |
|
|
|
remotes: RemotesConfig[]; |
|
|
|
showWhatsNewAfterUpgrades: boolean; |
|
|
|
statusBar: { |
|
|
|
alignment: 'left' | 'right'; |
|
|
|
command: StatusBarCommand; |
|
|
|
dateFormat: string | null; |
|
|
|
enabled: boolean; |
|
|
|
format: string; |
|
|
|
reduceFlicker: boolean; |
|
|
|
}; |
|
|
|
strings: { |
|
|
|
codeLens: { |
|
|
|
unsavedChanges: { |
|
|
|
recentChangeAndAuthors: string; |
|
|
|
recentChangeOnly: string; |
|
|
|
authorsOnly: string; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
views: ViewsConfig; |
|
|
|
advanced: AdvancedConfig; |
|
|
|
} |
|
|
|
|
|
|
|
export enum AnnotationsToggleMode { |
|
|
|
File = 'file', |
|
|
|
Window = 'window' |
|
|
@ -14,12 +106,6 @@ export enum CodeLensCommand { |
|
|
|
ToggleFileBlame = 'gitlens.toggleFileBlame' |
|
|
|
} |
|
|
|
|
|
|
|
export interface CodeLensLanguageScope { |
|
|
|
language: string | undefined; |
|
|
|
scopes?: CodeLensScopes[]; |
|
|
|
symbolScopes?: string[]; |
|
|
|
} |
|
|
|
|
|
|
|
export enum CodeLensScopes { |
|
|
|
Document = 'document', |
|
|
|
Containers = 'containers', |
|
|
@ -39,17 +125,6 @@ export enum DateStyle { |
|
|
|
Relative = 'relative' |
|
|
|
} |
|
|
|
|
|
|
|
export enum ViewBranchesLayout { |
|
|
|
List = 'list', |
|
|
|
Tree = 'tree' |
|
|
|
} |
|
|
|
|
|
|
|
export enum ViewFilesLayout { |
|
|
|
Auto = 'auto', |
|
|
|
List = 'list', |
|
|
|
Tree = 'tree' |
|
|
|
} |
|
|
|
|
|
|
|
export enum FileAnnotationType { |
|
|
|
Blame = 'blame', |
|
|
|
Heatmap = 'heatmap', |
|
|
@ -95,6 +170,17 @@ export enum StatusBarCommand { |
|
|
|
ToggleFileBlame = 'gitlens.toggleFileBlame' |
|
|
|
} |
|
|
|
|
|
|
|
export enum ViewBranchesLayout { |
|
|
|
List = 'list', |
|
|
|
Tree = 'tree' |
|
|
|
} |
|
|
|
|
|
|
|
export enum ViewFilesLayout { |
|
|
|
Auto = 'auto', |
|
|
|
List = 'list', |
|
|
|
Tree = 'tree' |
|
|
|
} |
|
|
|
|
|
|
|
export interface AdvancedConfig { |
|
|
|
blame: { |
|
|
|
customArguments: string[] | null; |
|
|
@ -142,31 +228,16 @@ export interface CodeLensConfig { |
|
|
|
symbolScopes: string[]; |
|
|
|
} |
|
|
|
|
|
|
|
export interface ViewsConfig { |
|
|
|
avatars: boolean; |
|
|
|
fileHistory: FileHistoryViewConfig; |
|
|
|
files: { |
|
|
|
layout: ViewFilesLayout; |
|
|
|
compact: boolean; |
|
|
|
threshold: number; |
|
|
|
}; |
|
|
|
commitFileFormat: string; |
|
|
|
commitFormat: string; |
|
|
|
compare: CompareViewConfig; |
|
|
|
// dateFormat: string | null;
|
|
|
|
defaultItemLimit: number; |
|
|
|
lineHistory: LineHistoryViewConfig; |
|
|
|
repositories: RepositoriesViewConfig; |
|
|
|
search: SearchViewConfig; |
|
|
|
stashFileFormat: string; |
|
|
|
stashFormat: string; |
|
|
|
statusFileFormat: string; |
|
|
|
export interface CodeLensLanguageScope { |
|
|
|
language: string | undefined; |
|
|
|
scopes?: CodeLensScopes[]; |
|
|
|
symbolScopes?: string[]; |
|
|
|
} |
|
|
|
|
|
|
|
export interface ViewsFilesConfig { |
|
|
|
compact: boolean; |
|
|
|
layout: ViewFilesLayout; |
|
|
|
threshold: number; |
|
|
|
export interface CompareViewConfig { |
|
|
|
enabled: boolean; |
|
|
|
files: ViewsFilesConfig; |
|
|
|
location: 'explorer' | 'gitlens' | 'scm'; |
|
|
|
} |
|
|
|
|
|
|
|
export interface FileHistoryViewConfig { |
|
|
@ -221,25 +292,6 @@ export interface ModeConfig { |
|
|
|
views?: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export interface RepositoriesViewConfig { |
|
|
|
autoRefresh: boolean; |
|
|
|
autoReveal: boolean; |
|
|
|
branches: { |
|
|
|
layout: ViewBranchesLayout; |
|
|
|
}; |
|
|
|
enabled: boolean; |
|
|
|
files: ViewsFilesConfig; |
|
|
|
includeWorkingTree: boolean; |
|
|
|
location: 'explorer' | 'gitlens' | 'scm'; |
|
|
|
showTrackingBranch: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export interface CompareViewConfig { |
|
|
|
enabled: boolean; |
|
|
|
files: ViewsFilesConfig; |
|
|
|
location: 'explorer' | 'gitlens' | 'scm'; |
|
|
|
} |
|
|
|
|
|
|
|
export interface RemotesConfig { |
|
|
|
domain: string; |
|
|
|
name?: string; |
|
|
@ -260,100 +312,48 @@ export interface RemotesUrlsConfig { |
|
|
|
fileRange: string; |
|
|
|
} |
|
|
|
|
|
|
|
export interface RepositoriesViewConfig { |
|
|
|
autoRefresh: boolean; |
|
|
|
autoReveal: boolean; |
|
|
|
branches: { |
|
|
|
layout: ViewBranchesLayout; |
|
|
|
}; |
|
|
|
enabled: boolean; |
|
|
|
files: ViewsFilesConfig; |
|
|
|
includeWorkingTree: boolean; |
|
|
|
location: 'explorer' | 'gitlens' | 'scm'; |
|
|
|
showTrackingBranch: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export interface SearchViewConfig { |
|
|
|
enabled: boolean; |
|
|
|
files: ViewsFilesConfig; |
|
|
|
location: 'explorer' | 'gitlens' | 'scm'; |
|
|
|
} |
|
|
|
|
|
|
|
export interface Config { |
|
|
|
blame: { |
|
|
|
avatars: boolean; |
|
|
|
export interface ViewsConfig { |
|
|
|
avatars: boolean; |
|
|
|
fileHistory: FileHistoryViewConfig; |
|
|
|
files: { |
|
|
|
layout: ViewFilesLayout; |
|
|
|
compact: boolean; |
|
|
|
dateFormat: string | null; |
|
|
|
format: string; |
|
|
|
heatmap: { |
|
|
|
enabled: boolean; |
|
|
|
location: 'left' | 'right'; |
|
|
|
}; |
|
|
|
highlight: { |
|
|
|
enabled: boolean; |
|
|
|
locations: HighlightLocations[]; |
|
|
|
}; |
|
|
|
ignoreWhitespace: boolean; |
|
|
|
separateLines: boolean; |
|
|
|
toggleMode: AnnotationsToggleMode; |
|
|
|
}; |
|
|
|
currentLine: { |
|
|
|
scrollable: boolean; |
|
|
|
dateFormat: string | null; |
|
|
|
enabled: boolean; |
|
|
|
format: string; |
|
|
|
}; |
|
|
|
codeLens: CodeLensConfig; |
|
|
|
debug: boolean; |
|
|
|
defaultDateFormat: string | null; |
|
|
|
defaultDateStyle: DateStyle; |
|
|
|
defaultGravatarsStyle: GravatarDefaultStyle; |
|
|
|
heatmap: { |
|
|
|
ageThreshold: number; |
|
|
|
coldColor: string; |
|
|
|
hotColor: string; |
|
|
|
toggleMode: AnnotationsToggleMode; |
|
|
|
}; |
|
|
|
hovers: { |
|
|
|
annotations: { |
|
|
|
changes: boolean; |
|
|
|
details: boolean; |
|
|
|
enabled: boolean; |
|
|
|
over: 'line' | 'annotation'; |
|
|
|
}; |
|
|
|
currentLine: { |
|
|
|
changes: boolean; |
|
|
|
details: boolean; |
|
|
|
enabled: boolean; |
|
|
|
over: 'line' | 'annotation'; |
|
|
|
}; |
|
|
|
avatars: boolean; |
|
|
|
enabled: boolean; |
|
|
|
}; |
|
|
|
insiders: boolean; |
|
|
|
keymap: KeyMap; |
|
|
|
menus: boolean | MenuConfig; |
|
|
|
mode: { |
|
|
|
active: string; |
|
|
|
statusBar: { |
|
|
|
enabled: boolean; |
|
|
|
alignment: 'left' | 'right'; |
|
|
|
}; |
|
|
|
}; |
|
|
|
modes: { [key: string]: ModeConfig }; |
|
|
|
outputLevel: LogLevel; |
|
|
|
recentChanges: { |
|
|
|
highlight: { |
|
|
|
locations: HighlightLocations[]; |
|
|
|
}; |
|
|
|
toggleMode: AnnotationsToggleMode; |
|
|
|
}; |
|
|
|
remotes: RemotesConfig[]; |
|
|
|
showWhatsNewAfterUpgrades: boolean; |
|
|
|
statusBar: { |
|
|
|
alignment: 'left' | 'right'; |
|
|
|
command: StatusBarCommand; |
|
|
|
dateFormat: string | null; |
|
|
|
enabled: boolean; |
|
|
|
format: string; |
|
|
|
reduceFlicker: boolean; |
|
|
|
}; |
|
|
|
strings: { |
|
|
|
codeLens: { |
|
|
|
unsavedChanges: { |
|
|
|
recentChangeAndAuthors: string; |
|
|
|
recentChangeOnly: string; |
|
|
|
authorsOnly: string; |
|
|
|
}; |
|
|
|
}; |
|
|
|
threshold: number; |
|
|
|
}; |
|
|
|
views: ViewsConfig; |
|
|
|
advanced: AdvancedConfig; |
|
|
|
commitFileFormat: string; |
|
|
|
commitFormat: string; |
|
|
|
compare: CompareViewConfig; |
|
|
|
// dateFormat: string | null;
|
|
|
|
defaultItemLimit: number; |
|
|
|
lineHistory: LineHistoryViewConfig; |
|
|
|
repositories: RepositoriesViewConfig; |
|
|
|
search: SearchViewConfig; |
|
|
|
stashFileFormat: string; |
|
|
|
stashFormat: string; |
|
|
|
statusFileFormat: string; |
|
|
|
} |
|
|
|
|
|
|
|
export interface ViewsFilesConfig { |
|
|
|
compact: boolean; |
|
|
|
layout: ViewFilesLayout; |
|
|
|
threshold: number; |
|
|
|
} |