Skip to content

Add ability to clear out certain modules in Luau::Frontend #2160

@JohnnyMorganz

Description

@JohnnyMorganz

When a file / module is renamed or deleted, right now there is no way to clear it specifically out of the Frontend, so it stays there forever until the program terminates or frontend.clear() is called (which clears all modules).

It would be valuable if there is a way to selectively clear out a certain list of modules from the Frontend. Any modules that (transitively) depend on the cleared modules should get marked as dirty. We would prefer not to have to clear out the whole frontend as then we'd need to repopulate it again.

Downstream issue: JohnnyMorganz/luau-lsp#1045

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions