Only type check dirty modules

This commit is contained in:
Rerumu 2021-11-05 21:41:41 -04:00
parent bd78c493c5
commit eef18d6a07

View file

@ -51,7 +51,12 @@ static void reportWarning(ReportFormat format, const char* name, const Luau::Lin
static bool analyzeFile(Luau::Frontend& frontend, const char* name, ReportFormat format, bool annotate)
{
Luau::CheckResult cr = frontend.check(name);
Luau::CheckResult cr;
if (frontend.isDirty(name))
{
cr = frontend.check(name);
}
if (!frontend.getSourceModule(name))
{