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 DapSetLogLevel when passing space after the level #1436

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

RoadRoller01
Copy link
Contributor

@RoadRoller01 RoadRoller01 commented Jan 26, 2025

if you passed a space after the level it should just work you did not add any letters and its not a script.
In example if you typed:
“DapSetLogLevel DEBUG “
it will not work,
So I trimmed the function args, I also replaced unpack(opts.fargs) with opts.args because it will return the same result with less code

Note:
opts.fargs is table of the function args.
unpack(table) convert table to string.
opts.args is args as string.
reference: https://neovim.io/doc/user/api.html#nvim_create_user_command()

@mfussenegger mfussenegger merged commit 52302f0 into mfussenegger:master Feb 6, 2025
4 checks passed
@mfussenegger
Copy link
Owner

Thanks

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