Generate slua_default.d.luau file#42
Merged
Merged
Conversation
This was referenced Jan 24, 2026
Collaborator
|
May want to rebase on top of the current |
… defs file said they were not-optional but could return nil
…finitions file. Keep all the override stuff auto-generated
ba74c08 to
853fcc0
Compare
Contributor
Author
|
Rebased |
HaroldCindy
approved these changes
Jan 27, 2026
HaroldCindy
left a comment
Collaborator
There was a problem hiding this comment.
Looks reasonable to me, thanks!
| if self.callable: | ||
| f.write("(") | ||
| f.write(self.callable.type_def_string()) | ||
| f.write(") & ") |
Collaborator
There was a problem hiding this comment.
Heh, seems obvious in retrospect, thanks!
Collaborator
|
@tapple This is great! I think I'll set up a Github release action that generates and posts a zip of the relevant syntax files. I'd also like to add a capability to the sim so you can request whatever pre-generated output from the simulator's |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Any instance of the Luau Language Server (luau-lsp) needs two files to make sense of slua code:
Currently, the code to autogenerate these files lives in the vscode plugin. I propose the code to generate these two files is moved here so it can be done once, and any future slua code editor (including the viewer's builtin editor) can make use of them.
To inspect the autogenerated files, see this PR, where I add them to the viewer:
This PR autogenerates
slua_default.d.luau. docs will follow in another PRPart of a set:
slua_default.d.luaufile #42