service/dap: move presentationHint to frame from source (#2810)

This commit is contained in:
Suzy Mueller
2021-12-01 04:57:03 -05:00
committed by GitHub
parent 75bbbbb60c
commit 3833c3d029
2 changed files with 3 additions and 3 deletions

View File

@ -4786,8 +4786,8 @@ func TestPanicBreakpointOnContinue(t *testing.T) {
st := client.ExpectStackTraceResponse(t)
for i, frame := range st.Body.StackFrames {
if strings.HasPrefix(frame.Name, "runtime.") {
if frame.Source.PresentationHint != "deemphasize" {
t.Errorf("\ngot Body.StackFrames[%d]=%#v\nwant Source.PresentationHint=\"deemphasize\"", i, frame)
if frame.PresentationHint != "subtle" {
t.Errorf("\ngot Body.StackFrames[%d]=%#v\nwant Source.PresentationHint=\"subtle\"", i, frame)
}
} else if frame.Source.PresentationHint != "" {
t.Errorf("\ngot Body.StackFrames[%d]=%#v\nwant Source.PresentationHint=\"\"", i, frame)