Skip to content

Commit

Permalink
Update decorations when clearing search fix #6498
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Schmidt <[email protected]>
  • Loading branch information
Eric Schmidt committed Nov 7, 2019
1 parent 0e16fe0 commit c134db9
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,13 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
if (currentTitle && currentTitle.owner instanceof EditorWidget) {
const widget = currentTitle.owner;
const fileNodes = this.getFileNodesByUri(widget.editor.uri);
fileNodes.forEach(node => {
this.decorateEditor(node, widget);
});
if (fileNodes.length > 0) {
fileNodes.forEach(node => {
this.decorateEditor(node, widget);
});
} else {
this.decorateEditor(undefined, widget);
}
}
});

Expand Down

0 comments on commit c134db9

Please sign in to comment.