src/vs/workbench/contrib/search/browser/searchActionsTopBar.ts/cancelSearch
function cancelSearch(accessor: ServicesAccessor) {
	const viewsService = accessor.get(IViewsService);
	const searchView = getSearchView(viewsService);
	searchView?.cancelSearch();
}