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(completion): use args table instead of args string to parse snippet #1016

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

kevinhwang91
Copy link
Contributor

For now, we parse the @param f fun(a: any, b: any) as two placeholders instead of one.
BTW, use table have a slightly better performance than spliting args string.

@kevinhwang91 kevinhwang91 force-pushed the fix-func-arg-for-callSnippet branch from e56600b to ca8b6ca Compare April 4, 2022 11:50
For now, we parse the `@param f fun(a: any, b: any)` as two placeholders instead of one.
BTW, use table have a slightly better performance than spliting args string.
@kevinhwang91 kevinhwang91 force-pushed the fix-func-arg-for-callSnippet branch from ca8b6ca to be2e0b5 Compare April 4, 2022 11:52
@sumneko sumneko merged commit 094dccd into LuaLS:master Apr 4, 2022
@kevinhwang91 kevinhwang91 deleted the fix-func-arg-for-callSnippet branch April 4, 2022 13:37
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