src/vs/workbench/services/search/node/ripgrepSearchProvider.ts/mergedTokenSource
function mergedTokenSource(token: CancellationToken): CancellationTokenSource {
	const tokenSource = new CancellationTokenSource();
	token.onCancellationRequested(() => tokenSource.cancel());

	return tokenSource;
}