mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-06 17:25:46 -05:00
1.0 wip
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
'use strict'
|
||||
'use strict';
|
||||
import {Commands} from './constants';
|
||||
|
||||
export type BlameAnnotationStyle = 'compact' | 'expanded';
|
||||
export const BlameAnnotationStyle = {
|
||||
Compact: 'compact' as BlameAnnotationStyle,
|
||||
Expanded: 'expanded' as BlameAnnotationStyle
|
||||
}
|
||||
};
|
||||
|
||||
export interface IBlameConfig {
|
||||
annotation: {
|
||||
@@ -22,22 +22,22 @@ export const CodeLensCommand = {
|
||||
BlameExplorer: Commands.ShowBlameHistory as CodeLensCommand,
|
||||
DiffWithPrevious: Commands.DiffWithPrevious as CodeLensCommand,
|
||||
GitViewHistory: 'git.viewFileHistory' as CodeLensCommand
|
||||
}
|
||||
};
|
||||
|
||||
export type CodeLensLocation = 'all' | 'document+containers' | 'document' | 'custom';
|
||||
export const CodeLensLocation = {
|
||||
All: 'all' as CodeLensLocation,
|
||||
DocumentAndContainers: 'document+containers' as CodeLensLocation,
|
||||
Document: 'document' as CodeLensLocation,
|
||||
Custom: 'custom' as CodeLensLocation,
|
||||
}
|
||||
Custom: 'custom' as CodeLensLocation
|
||||
};
|
||||
|
||||
export type CodeLensVisibility = 'auto' | 'ondemand' | 'off';
|
||||
export const CodeLensVisibility = {
|
||||
Auto: 'auto' as CodeLensVisibility,
|
||||
OnDemand: 'ondemand' as CodeLensVisibility,
|
||||
Off: 'off' as CodeLensVisibility
|
||||
}
|
||||
};
|
||||
|
||||
export interface ICodeLensConfig {
|
||||
enabled: boolean;
|
||||
@@ -59,7 +59,7 @@ export const StatusBarCommand = {
|
||||
DiffWithPrevious: Commands.DiffWithPrevious as StatusBarCommand,
|
||||
ToggleCodeLens: Commands.ToggleCodeLens as StatusBarCommand,
|
||||
GitViewHistory: 'git.viewFileHistory' as StatusBarCommand
|
||||
}
|
||||
};
|
||||
|
||||
export interface IStatusBarConfig {
|
||||
enabled: boolean;
|
||||
@@ -69,12 +69,12 @@ export interface IStatusBarConfig {
|
||||
export interface IAdvancedConfig {
|
||||
caching: {
|
||||
enabled: boolean
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export interface IConfig {
|
||||
blame: IBlameConfig,
|
||||
codeLens: ICodeLensesConfig,
|
||||
statusBar: IStatusBarConfig,
|
||||
advanced: IAdvancedConfig
|
||||
blame: IBlameConfig;
|
||||
codeLens: ICodeLensesConfig;
|
||||
statusBar: IStatusBarConfig;
|
||||
advanced: IAdvancedConfig;
|
||||
}
|
||||
Reference in New Issue
Block a user