Skip to content

Commit

Permalink
Fix search-in-workspace search result info
Browse files Browse the repository at this point in the history
Fixes #5698

- fixes an issue where the message `No Results Found.` is displayed
as a user types and attempts to search. The problem is that the message
is displayed before the search actually completes due to a `update()`.
Instead, the update to the widget is performed once the `search-in-workspace-tree`
completes it's search and fires the event `onDidChange()`.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Jul 12, 2019
1 parent b2fbe6e commit 26daf22
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ export class SearchInWorkspaceWidget extends BaseWidget implements StatefulWidge
} else {
this.searchTerm = (e.target as HTMLInputElement).value;
this.resultTreeWidget.search(this.searchTerm, (this.searchInWorkspaceOptions || {}));
this.update();
}
}
}
Expand Down

0 comments on commit 26daf22

Please sign in to comment.