Skip to content

Commit

Permalink
service/dap: use reloaded value
Browse files Browse the repository at this point in the history
The only part of the reloaded value that was used was the
Children. This caused a bug where the Time format string was
reloaded, but it was not being displayed.

Fixes go-delve#3342
  • Loading branch information
suzmue committed Apr 28, 2023
1 parent 5f588d8 commit 45d39a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/dap/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2485,6 +2485,7 @@ func (s *Session) convertVariableWithOpts(v *proc.Variable, qualifiedNameOrExpr
value += fmt.Sprintf(" - FAILED TO LOAD: %s", err)
} else {
v.Children = vLoaded.Children
v.Value = vLoaded.Value
value = api.ConvertVar(v).SinglelineString()
}
return value
Expand Down

0 comments on commit 45d39a6

Please sign in to comment.