mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Reset template label when rendering variable without name in repl (#178704)
Fix #176798
This commit is contained in:
parent
b5aa594745
commit
b1ad3f934c
|
@ -245,6 +245,7 @@ export class ReplVariablesRenderer extends AbstractExpressionsRenderer<IExpressi
|
|||
protected renderExpression(expression: IExpression | ReplVariableElement, data: IExpressionTemplateData, highlights: IHighlight[]): void {
|
||||
const isReplVariable = expression instanceof ReplVariableElement;
|
||||
if (isReplVariable || !expression.name) {
|
||||
data.label.set('');
|
||||
renderExpressionValue(isReplVariable ? expression.expr : expression, data.value, { showHover: false, colorize: true, linkDetector: this.linkDetector });
|
||||
data.expression.classList.remove('nested-variable');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue