Changed selectDefinition to navigateToDefinition.  Bail early if file has no project.