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(dap): switch to using lldb adapter, dap-client configuration from config, load launch.json by default, probe-rs support #93

Merged
merged 8 commits into from
Dec 12, 2023

Conversation

Andrew-Collins
Copy link
Contributor

Description of changes

Added support for the probe-rs adapter, and in doing so implemented (at least in spirit) #29 and #66.

There are a lot of possible implementations, so I'll add some comments to the diffs discussing what I came up with.

Things done
  • Switch to using lldb adapter instead of rt_lldb.

  • Added dap.configuration entry to config, allowing for configuration of the dap-client.

    • Default for this entry loads launch.json with the fallback of a basic config of the lldb adapter.
  • Support probe-rs adapter when configuring the dap-client.

  • Tested, as applicable:

    • Manually
    • Added busted specs
  • Updated CHANGELOG.md (if applicable).

  • Fits CONTRIBUTING.md

…rom config, load `launch.json` by default, `probe-rs` support
doc/rustaceanvim.txt Outdated Show resolved Hide resolved
lua/rustaceanvim/config/internal.lua Show resolved Hide resolved
lua/rustaceanvim/dap.lua Show resolved Hide resolved
@mrcjkb
Copy link
Owner

mrcjkb commented Dec 10, 2023

Wow, this looks great, thanks! 😄

I'll try to find some time to review this in detail soon.

@Andrew-Collins
Copy link
Contributor Author

Andrew-Collins commented Dec 10, 2023

No worries. 😄

Feel free to ask for things to be moved around; I did things in a way that made sense to me, but I'm happy to defer to your opinion/vision.

@mrcjkb
Copy link
Owner

mrcjkb commented Dec 11, 2023

cc @richchurcher tagging you because you were interested in this, too 😄

Copy link
Owner

@mrcjkb mrcjkb left a comment

Choose a reason for hiding this comment

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

This is great! Thanks again 😄

Just a few minor nitpicks (see my review comments).

CHANGELOG.md Outdated Show resolved Hide resolved
lua/rustaceanvim/config/init.lua Outdated Show resolved Hide resolved
lua/rustaceanvim/config/check.lua Show resolved Hide resolved
lua/rustaceanvim/config/init.lua Show resolved Hide resolved
lua/rustaceanvim/config/init.lua Outdated Show resolved Hide resolved
lua/rustaceanvim/config/internal.lua Outdated Show resolved Hide resolved
lua/rustaceanvim/config/init.lua Outdated Show resolved Hide resolved
lua/rustaceanvim/config/init.lua Outdated Show resolved Hide resolved
lua/rustaceanvim/config/internal.lua Outdated Show resolved Hide resolved
lua/rustaceanvim/config/internal.lua Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants