Add method to get the capabilities from the client

This commit is contained in:
Remco Smits
2024-07-16 23:07:43 +02:00
parent ef098c028b
commit a48166e5a0

View File

@@ -298,6 +298,10 @@ impl DebugAdapterClient {
self.config.request.clone()
}
pub fn capabilities(&self) -> Option<dap_types::Capabilities> {
self.capabilities.clone()
}
pub fn next_request_id(&self) -> u64 {
self.request_count.fetch_add(1, Ordering::Relaxed)
}