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:
Eric Amodio
2016-09-15 04:26:49 -04:00
parent f34686de36
commit dcb789f58d
8 changed files with 359 additions and 115 deletions

32
src/configuration.ts Normal file
View 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;
}