Skip to content
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

Fix backwards compatability with Lua.workspace.checkThirdParty (take 2!) #2409

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

9999years
Copy link
Contributor

I attempted to maintain backwards compatability in #2354 and #2406 but didn't fully understand the config type system.

This approach uses Type.Or and I even tested it to confirm that it works!

Thanks to @pysan3 for pointing out how a default would be used for invalid types (#2406 (comment)), and thanks to @sumneko for pointing out Type.Or (#2406 (comment)).

I attempted to maintain backwards compatability in LuaLS#2354 and LuaLS#2406 but
didn't fully understand the config type system.

This approach uses `Type.Or` and I even tested it to confirm that it
works!

Thanks to @pysan3 for pointing out how a default would be used for
invalid types and to @sumneko for pointing out `Type.Or`.
@sumneko sumneko merged commit 0e1b109 into LuaLS:master Nov 9, 2023
7 checks passed
@pysan3
Copy link

pysan3 commented Nov 9, 2023

Very nice. Thank you!!

@pysan3
Copy link

pysan3 commented Nov 9, 2023

I think you can close this issue now @sumneko

#2407

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.

3 participants