parent
f76e090063
commit
de177b62b9
2 changed files with 5 additions and 3 deletions
|
@ -257,7 +257,7 @@ export abstract class ExpressionContainer implements debug.IExpressionContainer
|
|||
const numberOfChunks = this.indexedVariables / ExpressionContainer.CHUNK_SIZE;
|
||||
for (let i = 0; i < numberOfChunks; i++) {
|
||||
const chunkSize = Math.min(ExpressionContainer.CHUNK_SIZE, this.indexedVariables - i * ExpressionContainer.CHUNK_SIZE);
|
||||
const chunkName = `${i * ExpressionContainer.CHUNK_SIZE}..${i * ExpressionContainer.CHUNK_SIZE + chunkSize - 1}`;
|
||||
const chunkName = `${i * ExpressionContainer.CHUNK_SIZE} \u2026 ${i * ExpressionContainer.CHUNK_SIZE + chunkSize - 1}`;
|
||||
childrenArray.push(new Variable(this, this.reference, chunkName, '', null, chunkSize, null, true, i));
|
||||
}
|
||||
|
||||
|
|
|
@ -71,11 +71,12 @@ export function renderExpressionValue(expressionOrValue: debug.IExpression | str
|
|||
|
||||
export function renderVariable(tree: tree.ITree, variable: model.Variable, data: IVariableTemplateData, showChanged: boolean): void {
|
||||
if (variable.available) {
|
||||
data.name.textContent = variable.name + ':';
|
||||
data.name.textContent = variable.name;
|
||||
data.name.title = variable.type ? variable.type : '';
|
||||
}
|
||||
|
||||
if (variable.value) {
|
||||
data.name.textContent += ':';
|
||||
renderExpressionValue(variable, data.value, showChanged, MAX_VALUE_RENDER_LENGTH_IN_VIEWLET);
|
||||
data.value.title = variable.value;
|
||||
} else {
|
||||
|
@ -884,8 +885,9 @@ export class WatchExpressionsRenderer implements tree.IRenderer {
|
|||
}
|
||||
data.actionBar.context = watchExpression;
|
||||
|
||||
data.name.textContent = `${watchExpression.name}:`;
|
||||
data.name.textContent = watchExpression.name;
|
||||
if (watchExpression.value) {
|
||||
data.name.textContent += ':';
|
||||
renderExpressionValue(watchExpression, data.value, true, MAX_VALUE_RENDER_LENGTH_IN_VIEWLET);
|
||||
data.name.title = watchExpression.type ? watchExpression.type : watchExpression.value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue