Adds details hover to recent changes annotations

This commit is contained in:
Eric Amodio
2017-06-11 17:43:53 -04:00
parent 7f2ec30164
commit ce98f02706
5 changed files with 41 additions and 9 deletions

View File

@@ -361,6 +361,16 @@ export class CurrentLineController extends Disposable {
}
case FileAnnotationType.RecentChanges: {
const cfgChanges = this._config.annotations.file.recentChanges.hover;
if (cfgChanges.details) {
if (cfgChanges.wholeLine) {
// Avoid double annotations if we are showing the whole-file hover blame annotations
showDetails = false;
}
else {
showDetailsInStartingWhitespace = false;
}
}
if (cfgChanges.changes) {
if (cfgChanges.wholeLine) {
// Avoid double annotations if we are showing the whole-file hover blame annotations