Skip to content

Use DataModel analysis #227

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

Merged
merged 4 commits into from
Dec 1, 2023
Merged

Use DataModel analysis #227

merged 4 commits into from
Dec 1, 2023

Conversation

vocksel
Copy link
Collaborator

@vocksel vocksel commented Nov 25, 2023

For some reason, using tests.project.json gives better analysis that dev.project.json. Seems like this is because the former will mount flipbook to the DataModel.

This PR updates our analysis to generate sourcemaps from tests.project.json, and also fixes up the resulting type errors from this change

@vocksel vocksel marked this pull request as ready for review November 25, 2023 00:49
Copy link
Collaborator

@passhley passhley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only 2 things I left comments for, however the first one happens across multiple files

@vocksel vocksel requested a review from passhley November 27, 2023 02:16
@vocksel vocksel merged commit eb83794 into main Dec 1, 2023
@vocksel vocksel deleted the datamodel-analysis branch December 1, 2023 01:25
vocksel added a commit that referenced this pull request Dec 1, 2023
# Problem

Attempting to use the `flipbook` variable to reference our types in the
past has resulted in those types not being recognized by luau-lsp. That
problem is now fixed with #227, so now we're free to use shorter paths

# Solution

This PR updates most `script.Parent` paths to use the `flipbook`
variable (and define it as needed) so that all paths are absolute.

# Checklist

- [ ] Ran `./bin/test.sh` locally before merging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants