Skip to content

Commit

Permalink
Merge pull request #48324 from cody/search-clear
Browse files Browse the repository at this point in the history
Enable clear search even if there are no results found
  • Loading branch information
roblourens authored Apr 22, 2018
2 parents aeef9c5 + 899c95d commit 147ca54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/search/browser/searchActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export class ClearSearchResultsAction extends Action {

update(): void {
const searchView = getSearchView(this.viewletService, this.panelService);
this.enabled = searchView && searchView.hasSearchResults();
this.enabled = searchView && searchView.isSearchSubmitted();
}

public run(): TPromise<void> {
Expand Down

0 comments on commit 147ca54

Please sign in to comment.