@@ -393,6 +393,27 @@ impl Client {
396+ pub async fn attach(&mut self, args: impl Serialize) -> Result<()> {
397+ self.request("attach".to_owned(), to_value(args).ok())
404+ .expect("Expected initialized event")
406+ Payload::Event(Event { event, .. }) => {
407+ if event == *"initialized" {
413+ _ => unreachable!(),
396 pub async fn set_breakpoints(
417 pub async fn set_breakpoints(
397 &mut self,
418 &mut self,
398 file: String,
419 file: String,