mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-05 01:35:37 -05:00
Adds new recent changes annotations
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
'use strict';
|
||||
import { FileAnnotationType } from './annotations/annotationController';
|
||||
import { Commands } from './commands';
|
||||
import { LineAnnotationType } from './currentLineController';
|
||||
import { OutputLevel } from './logger';
|
||||
|
||||
export { ExtensionKey } from './constants';
|
||||
|
||||
export type BlameLineHighlightLocations = 'gutter' | 'line' | 'overviewRuler';
|
||||
export const BlameLineHighlightLocations = {
|
||||
Gutter: 'gutter' as BlameLineHighlightLocations,
|
||||
Line: 'line' as BlameLineHighlightLocations,
|
||||
OverviewRuler: 'overviewRuler' as BlameLineHighlightLocations
|
||||
};
|
||||
|
||||
export type CodeLensCommand = 'gitlens.toggleFileBlame' |
|
||||
'gitlens.showBlameHistory' |
|
||||
'gitlens.showFileHistory' |
|
||||
@@ -38,16 +33,11 @@ export const CodeLensLocations = {
|
||||
Custom: 'custom' as CodeLensLocations
|
||||
};
|
||||
|
||||
export type FileAnnotationType = 'gutter' | 'hover';
|
||||
export const FileAnnotationType = {
|
||||
Gutter: 'gutter' as FileAnnotationType,
|
||||
Hover: 'hover' as FileAnnotationType
|
||||
};
|
||||
|
||||
export type LineAnnotationType = 'trailing' | 'hover';
|
||||
export const LineAnnotationType = {
|
||||
Trailing: 'trailing' as LineAnnotationType,
|
||||
Hover: 'hover' as LineAnnotationType
|
||||
export type LineHighlightLocations = 'gutter' | 'line' | 'overviewRuler';
|
||||
export const LineHighlightLocations = {
|
||||
Gutter: 'gutter' as LineHighlightLocations,
|
||||
Line: 'line' as LineHighlightLocations,
|
||||
OverviewRuler: 'overviewRuler' as LineHighlightLocations
|
||||
};
|
||||
|
||||
export type StatusBarCommand = 'gitlens.toggleFileBlame' |
|
||||
@@ -244,6 +234,13 @@ export interface IConfig {
|
||||
};
|
||||
wholeLine: boolean;
|
||||
};
|
||||
|
||||
recentChanges: {
|
||||
hover: {
|
||||
changes: boolean;
|
||||
wholeLine: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
line: {
|
||||
@@ -269,7 +266,7 @@ export interface IConfig {
|
||||
annotationType: FileAnnotationType;
|
||||
lineHighlight: {
|
||||
enabled: boolean;
|
||||
locations: BlameLineHighlightLocations[];
|
||||
locations: LineHighlightLocations[];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -279,6 +276,14 @@ export interface IConfig {
|
||||
};
|
||||
};
|
||||
|
||||
recentChanges: {
|
||||
file: {
|
||||
lineHighlight: {
|
||||
locations: LineHighlightLocations[];
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
codeLens: {
|
||||
enabled: boolean;
|
||||
recentChange: {
|
||||
|
||||
Reference in New Issue
Block a user