mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-29 09:35:41 -05:00
Adds many new settings
Adds new blame annotation styles (compact & expanded) Cleaned up blame annotations Fixes issue with invalid repoPath on first start
This commit is contained in:
32
src/configuration.ts
Normal file
32
src/configuration.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export type BlameAnnotationStyle = 'compact' | 'expanded';
|
||||
export const BlameAnnotationStyle = {
|
||||
Compact: 'compact' as BlameAnnotationStyle,
|
||||
Expanded: 'expanded' as BlameAnnotationStyle
|
||||
}
|
||||
|
||||
export interface IBlameConfig {
|
||||
annotation: {
|
||||
style: BlameAnnotationStyle;
|
||||
sha: boolean;
|
||||
author: boolean;
|
||||
date: boolean;
|
||||
useCodeActions: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export type CodeLensCommand = 'blame.annotate' | 'blame.explorer' | 'git.history';
|
||||
export const CodeLensCommand = {
|
||||
BlameAnnotate: 'blame.annotate' as CodeLensCommand,
|
||||
BlameExplorer: 'blame.explorer' as CodeLensCommand,
|
||||
GitHistory: 'git.history' as CodeLensCommand
|
||||
}
|
||||
|
||||
export interface ICodeLensConfig {
|
||||
enabled: boolean;
|
||||
command: CodeLensCommand;
|
||||
}
|
||||
|
||||
export interface ICodeLensesConfig {
|
||||
recentChange: ICodeLensConfig;
|
||||
authors: ICodeLensConfig;
|
||||
}
|
||||
Reference in New Issue
Block a user