Fix getDefinitions for SingleLoc and add getCodeLenses