diff --git a/components/devtools/actors/thread.rs b/components/devtools/actors/thread.rs index d5037682baf..102f428bc8b 100644 --- a/components/devtools/actors/thread.rs +++ b/components/devtools/actors/thread.rs @@ -39,6 +39,15 @@ struct ReconfigureReply { from: String } +#[derive(Serialize)] +struct SourcesReply { + from: String, + sources: Vec, +} + +#[derive(Serialize)] +enum Source {} + pub struct ThreadActor { name: String, } @@ -88,6 +97,15 @@ impl Actor for ThreadActor { ActorMessageStatus::Processed } + "sources" => { + let msg = SourcesReply { + from: self.name(), + sources: vec![], + }; + stream.write_json_packet(&msg); + ActorMessageStatus::Processed + } + _ => ActorMessageStatus::Ignored, }) }