debugger: Highlight the size of jumped-to memory (#34504)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-07-16 01:32:48 +02:00 committed by GitHub
parent afbd2b760f
commit 7ca3d969e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 8 deletions

View file

@ -1787,7 +1787,7 @@ impl Session {
frame_id: Option<u64>,
expression: String,
cx: &mut Context<Self>,
) -> Task<Option<String>> {
) -> Task<Option<(String, Option<String>)>> {
let request = self.request(
EvaluateCommand {
expression,
@ -1801,7 +1801,9 @@ impl Session {
);
cx.background_spawn(async move {
let result = request.await?;
result.memory_reference
result
.memory_reference
.map(|reference| (reference, result.type_))
})
}