Skip to content

RFC: Definition files specified in luaurc #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ffrostfall
Copy link
Contributor

@aatxe
Copy link
Contributor

aatxe commented May 27, 2025

I suspect that the actually good solution for this problem, that doesn't lead to people doing very silly things with their projects (like defining tons of declaration files for luau code they've written), is to handle runtime registration at a build tooling level and have that inform the LSP and so forth. Not necessarily hard blocking this on that, and I recognize that it may be worth introducing something before we get to that point, but the long view IMO is that projects will declare the runtimes they support, registries will know what runtimes are, the package manager will pull type definitions for the appropriate runtimes the project is declared to support, and you'll be able to systematically check locally (and make available to the LSP) those definition files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants