diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ebed54..8b63728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] +### Fixed +- Fixes [#247](https://github.com/eamodio/vscode-gitlens/issues/247) - File annotations button or ESC key does not turn off file annotations + ## [7.5.4] - 2018-01-17 ### Fixed - Fixes [#249](https://github.com/eamodio/vscode-gitlens/issues/249) - Gitlens disappears from the status bar diff --git a/src/annotations/annotationProvider.ts b/src/annotations/annotationProvider.ts index 7f6213d..d55a8dd 100644 --- a/src/annotations/annotationProvider.ts +++ b/src/annotations/annotationProvider.ts @@ -61,7 +61,7 @@ export abstract class AnnotationProviderBase extends Disposable { protected additionalDecorations: { decoration: TextEditorDecorationType, ranges: Range[] }[] | undefined; async clear() { - if (this.editor === undefined || this.additionalDecorations === undefined || this.additionalDecorations.length === 0) return; + if (this.editor === undefined) return; if (this.decoration !== undefined) { try {