During a thoracoscopy, the surgeon takes the whole tumor out as well as the neighboring part of the lung. This is known as wedge resection.