Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
checkraisefold committed Oct 27, 2024
1 parent 85f1706 commit ccfce10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DocumentationParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ std::optional<std::string> WorkspaceFolder::getDocumentationForType(const Luau::
{
return printMoonwaveDocumentation(getComments(ftv->definition->definitionModuleName.value(), ftv->definition->definitionLocation));
}
else if (auto ttv = Luau::get<Luau::TableType>(followedTy); ttv)
else if (auto ttv = Luau::get<Luau::TableType>(followedTy); ttv && !ttv->definitionModuleName.empty())
{
return printMoonwaveDocumentation(getComments(ttv->definitionModuleName, ttv->definitionLocation));
}
Expand Down
3 changes: 2 additions & 1 deletion tests/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <limits>
#define DOCTEST_CONFIG_NO_UNPREFIXED_OPTIONS
#define DOCTEST_CONFIG_IMPLEMENT
#include "doctest.h"
Expand All @@ -15,7 +16,7 @@ int main(int argc, const char** argv)
if (strcmp(argv[i], "--new-solver") == 0)
{
FFlag::LuauSolverV2.value = true;
DFInt::LuauTypeSolverRelease.value = 645;
DFInt::LuauTypeSolverRelease.value = std::numeric_limits<int>::max();
break;
}
}
Expand Down

0 comments on commit ccfce10

Please sign in to comment.