From a55d1d42aab919828138b96942cbc57686685ecf Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 2 Jan 2018 02:25:28 -0500 Subject: [PATCH] Fixes issue with replacing existing results --- CHANGELOG.md | 3 +++ src/views/resultsExplorer.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 609b311..0687310 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added - Adds `gitlens.defaultDateStyle` setting to specify how dates will be displayed by default -- closes [#89](https://github.com/eamodio/vscode-gitlens/issues/89) +### Fixed +- Fixes issue where the `GitLens Results` view wouldn't properly update when replacing existing results + ## [7.2.0] - 2018-01-01 ### Added - Adds on-demand **heatmap annotations** of the whole file -- closes [#182](https://github.com/eamodio/vscode-gitlens/issues/182) diff --git a/src/views/resultsExplorer.ts b/src/views/resultsExplorer.ts index e5bdca2..e0d7006 100644 --- a/src/views/resultsExplorer.ts +++ b/src/views/resultsExplorer.ts @@ -179,6 +179,8 @@ export class ResultsExplorer implements TreeDataProvider { this._roots.forEach(r => r.dispose()); this._roots = []; + + this.refresh(); } private clearResultsNode(node: ExplorerNode) {