提交 2b1f891a 编写于 作者: I isidor

debug: do not show value changed decoration if the expression is unavailable

fixes #48468
上级 1fdb0e0a
......@@ -66,6 +66,9 @@ export function renderExpressionValue(expressionOrValue: IExpression | string, c
if (value !== Expression.DEFAULT_VALUE) {
dom.addClass(container, 'error');
}
} else if (options.showChanged && (<any>expressionOrValue).valueChanged && value !== Expression.DEFAULT_VALUE) {
// value changed color has priority over other colors.
container.className = 'value changed';
}
if (options.colorize && typeof expressionOrValue !== 'string') {
......@@ -80,11 +83,6 @@ export function renderExpressionValue(expressionOrValue: IExpression | string, c
}
}
if (options.showChanged && (<any>expressionOrValue).valueChanged && value !== Expression.DEFAULT_VALUE) {
// value changed color has priority over other colors.
container.className = 'value changed';
}
if (options.maxValueLength && value.length > options.maxValueLength) {
value = value.substr(0, options.maxValueLength) + '...';
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册