code-assist: avoid extra code assistant calls if service was not found