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

feat(api): support passing a map-like table as args #1670

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

xiyaowong
Copy link
Collaborator

Most commands either require multiple arguments or only require one object parameter. So when args is a map-like table, it is automatically treated as the first argument, which is more convenient and easier to understand.

Most commands either require multiple arguments or only require one
object parameter. So when args is a map-like table, it is automatically
treated as the first argument, which is more convenient and easier to
understand.
Copy link
Collaborator

@justinmk justinmk left a comment

Choose a reason for hiding this comment

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

This interface is getting a lot of subtle features, can we have some test coverage for it?

@xiyaowong
Copy link
Collaborator Author

Only manual testing

@xiyaowong xiyaowong merged commit 8fe3d8f into vscode-neovim:master Dec 4, 2023
8 checks passed
@xiyaowong xiyaowong deleted the feat/lua-api-args branch December 4, 2023 09:20
@xiyaowong xiyaowong removed the request for review from theol0403 December 4, 2023 09:20
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.

None yet

2 participants