We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96925d5 commit 604d785Copy full SHA for 604d785
crates/rust-analyzer/src/main_loop.rs
@@ -969,7 +969,9 @@ impl GlobalState {
969
TestState::Ok => lsp_ext::TestState::Passed,
970
TestState::Failed { stdout } => lsp_ext::TestState::Failed { message: stdout },
971
};
972
- let test_id = format!("{}::{name}", message.target.target);
+
973
+ // The notification requires the namespace form (with underscores) of the target
974
+ let test_id = format!("{}::{name}", message.target.target.replace('-', "_"));
975
976
self.send_notification::<lsp_ext::ChangeTestState>(
977
lsp_ext::ChangeTestStateParams { test_id, state },
0 commit comments