mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
add it to the returns too
This commit is contained in:
parent
10049ee108
commit
f9c00ea81d
1 changed files with 2 additions and 1 deletions
|
@ -1659,6 +1659,7 @@ FragmentAutocompleteResult fragmentAutocomplete(
|
||||||
if (FFlag::DebugLogFragmentsFromAutocomplete)
|
if (FFlag::DebugLogFragmentsFromAutocomplete)
|
||||||
logLuau("Fragment Autocomplete Source Script", src);
|
logLuau("Fragment Autocomplete Source Script", src);
|
||||||
unfreeze(tcResult.incrementalModule->internalTypes);
|
unfreeze(tcResult.incrementalModule->internalTypes);
|
||||||
|
TypeArena arenaForAutocomplete;
|
||||||
auto result = Luau::autocomplete_(
|
auto result = Luau::autocomplete_(
|
||||||
tcResult.incrementalModule,
|
tcResult.incrementalModule,
|
||||||
frontend.builtinTypes,
|
frontend.builtinTypes,
|
||||||
|
@ -1672,7 +1673,7 @@ FragmentAutocompleteResult fragmentAutocomplete(
|
||||||
);
|
);
|
||||||
freeze(tcResult.incrementalModule->internalTypes);
|
freeze(tcResult.incrementalModule->internalTypes);
|
||||||
reportWaypoint(reporter, FragmentAutocompleteWaypoint::AutocompleteEnd);
|
reportWaypoint(reporter, FragmentAutocompleteWaypoint::AutocompleteEnd);
|
||||||
return {std::move(tcResult.incrementalModule), tcResult.freshScope.get(), std::move(result)};
|
return {std::move(tcResult.incrementalModule), tcResult.freshScope.get(), std::move(arenaForAutocomplete), std::move(result)};
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Luau
|
} // namespace Luau
|
||||||
|
|
Loading…
Add table
Reference in a new issue