internal: add probe-rs debug provider
close https://github.com/rust-lang/rust-analyzer/issues/19948
Should we add it to knownEngines too?
Should we add it to
knownEnginestoo?
yeah, we need to figure out ProbeRsDebugConfig
probe-rs needs to configure the target chip, which seems unsuitable for providing out-of-the-box support in rust-analyzer.
cc @mfp20
probe-rsneeds to configure the target chip, which seems unsuitable for providing out-of-the-box support in rust-analyzer.cc @mfp20
In ${workspaceFolder}/.cargo/config.toml there's probe-rs config:
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-rs run --chip rp2040 --protocol swd --speed 20000"
All projects must have it. AFAIK it is not used by the vscode extension, but it is used by vscode as run config. Maybe you can't support the vscode extension but you can hook to that for basic support. Just an idea.