@@ -20,9 +20,8 @@ registerUpdateReconciler(module);
20
20
21
21
@hotClass ( module )
22
22
export class GenericVisualizationSupport
23
- implements DebugSessionVisualizationSupport
24
- {
25
- constructor ( private readonly debuggerView : DebuggerViewProxy ) { }
23
+ implements DebugSessionVisualizationSupport {
24
+ constructor ( private readonly debuggerView : DebuggerViewProxy ) { }
26
25
27
26
createBackend (
28
27
session : DebugSessionProxy
@@ -64,6 +63,18 @@ export class GenericVisualizationBackend extends VisualizationBackendBase {
64
63
context : this . getContext ( ) ,
65
64
} ) ;
66
65
66
+ const result = parseEvaluationResultFromGenericDebugAdapter (
67
+ reply . result ,
68
+ {
69
+ debugAdapterType :
70
+ this . debugSession . session . configuration . type ,
71
+ }
72
+ ) ;
73
+
74
+ if ( result . kind === "data" ) {
75
+ return result ;
76
+ }
77
+
67
78
// Use structural information about variables
68
79
// from the evaluation response if present.
69
80
if ( reply . variablesReference ) {
@@ -84,15 +95,9 @@ export class GenericVisualizationBackend extends VisualizationBackendBase {
84
95
data : graph ,
85
96
} ,
86
97
} ;
87
- } else {
88
- return parseEvaluationResultFromGenericDebugAdapter (
89
- reply . result ,
90
- {
91
- debugAdapterType :
92
- this . debugSession . session . configuration . type ,
93
- }
94
- ) ;
95
98
}
99
+
100
+ return result ;
96
101
} catch ( error : any ) {
97
102
return {
98
103
kind : "error" ,
@@ -147,13 +152,13 @@ export class GenericVisualizationBackend extends VisualizationBackendBase {
147
152
variablesReference : number ;
148
153
depth : number ;
149
154
} [ ] = [
150
- {
151
- source : undefined ,
152
- label : rootLabel ,
153
- variablesReference : rootVariablesReference ,
154
- depth : 0 ,
155
- } ,
156
- ] ;
155
+ {
156
+ source : undefined ,
157
+ label : rootLabel ,
158
+ variablesReference : rootVariablesReference ,
159
+ depth : 0 ,
160
+ } ,
161
+ ] ;
157
162
158
163
let knownCount : number = 0 ;
159
164
0 commit comments