Developer Tishman Speyer was prepared to build its mammoth office-retail complex in Long Island City on spec.

But to the surprise of chief executive Rob Speyer, it didn’t need to.

“We pre-leased more than 800,000 square feet, which was extraordinary, and we weren’t expecting that,” he said.

In...