From 9873e0ef63bf8c5b93da68ec7ba78f20e8129630 Mon Sep 17 00:00:00 2001 From: Suzy Mueller Date: Fri, 28 Apr 2023 14:57:36 -0400 Subject: [PATCH] service/dap: use reloaded value 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/delve#3342 --- service/dap/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service/dap/server.go b/service/dap/server.go index 3b9e10cc..974d9aab 100644 --- a/service/dap/server.go +++ b/service/dap/server.go @@ -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