File tree 2 files changed +6
-3
lines changed
src/vs/workbench/parts/debug/electron-browser
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ export function renderExpressionValue(expressionOrValue: debug.IExpression | str
70
70
}
71
71
}
72
72
73
- if ( options . colorize ) {
74
- if ( ! isNaN ( + value ) ) {
73
+ if ( options . colorize && typeof expressionOrValue !== 'string' ) {
74
+ if ( expressionOrValue . type === 'number' || expressionOrValue . type === 'boolean' || expressionOrValue . type === 'string' ) {
75
+ dom . addClass ( container , expressionOrValue . type ) ;
76
+ } else if ( ! isNaN ( + value ) ) {
75
77
dom . addClass ( container , 'number' ) ;
76
78
} else if ( booleanRegex . test ( value ) ) {
77
79
dom . addClass ( container , 'boolean' ) ;
Original file line number Diff line number Diff line change @@ -232,7 +232,8 @@ export class ReplExpressionsRenderer implements IRenderer {
232
232
templateData . input . textContent = expression . name ;
233
233
renderExpressionValue ( expression , templateData . value , {
234
234
preserveWhitespace : ! expression . hasChildren ,
235
- showHover : false
235
+ showHover : false ,
236
+ colorize : true
236
237
} ) ;
237
238
if ( expression . hasChildren ) {
238
239
templateData . annotation . className = 'annotation octicon octicon-info' ;
You can’t perform that action at this time.
0 commit comments