src/vs/platform/files/electron-browser/diskFileSystemProvider.ts/DiskFileSystemProvider/doDelete
class DiskFileSystemProvider:	protected override async doDelete(filePath: string, opts: FileDeleteOptions): Promise<void> {
		if (!opts.useTrash) {
			return super.doDelete(filePath, opts);
		}

		try {
			await this.nativeHostService.moveItemToTrash(filePath);
		} catch (error) {
			this.logService.error(error);

			throw new Error(isWindows ? localize('binFailed', "Failed to move '{0}' to the recycle bin", basename(filePath)) : localize('trashFailed', "Failed to move '{0}' to the trash", basename(filePath)));
		}
	}