@theia/plugin-ext 1.57.0-next.7 → 1.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -148,6 +148,8 @@ export async function outputWebviewPreload(ctx: PreloadContext): Promise<void> {
148
148
  readonly element: HTMLElement;
149
149
  readonly outputElements: OutputContainer[] = [];
150
150
 
151
+ private cellHeight: number = 0;
152
+
151
153
  constructor(public cellHandle: number, cellIndex?: number) {
152
154
  this.element = document.createElement('div');
153
155
  this.element.style.outline = '0';
@@ -183,6 +185,7 @@ export async function outputWebviewPreload(ctx: PreloadContext): Promise<void> {
183
185
  outputContainer = new OutputContainer(output, items, this);
184
186
  this.element.appendChild(outputContainer.containerElement);
185
187
  this.outputElements.splice(index, 0, outputContainer);
188
+ this.updateCellHeight(this.cellHeight);
186
189
  }
187
190
 
188
191
  return outputContainer;
@@ -206,7 +209,8 @@ export async function outputWebviewPreload(ctx: PreloadContext): Promise<void> {
206
209
  this.element.style.visibility = 'hidden';
207
210
  }
208
211
 
209
- public updateCellHeight(cellKind: number, height: number): void {
212
+ public updateCellHeight(height: number): void {
213
+ this.cellHeight = height;
210
214
  let additionalHeight = 54.5;
211
215
  additionalHeight -= cells[0] === this ? 2.5 : 0; // first cell
212
216
  additionalHeight -= this.outputElements.length ? 0 : 5.5; // no outputs
@@ -763,7 +767,7 @@ export async function outputWebviewPreload(ctx: PreloadContext): Promise<void> {
763
767
  cellHandle = event.data.cellHandle;
764
768
  const cell = cells.find(c => c.cellHandle === cellHandle);
765
769
  if (cell) {
766
- cell.updateCellHeight(event.data.cellKind, event.data.height);
770
+ cell.updateCellHeight(event.data.height);
767
771
  }
768
772
  break;
769
773
  case 'outputVisibilityChanged':
@@ -3417,6 +3417,7 @@ export class FileCoverage {
3417
3417
  public statementCoverage: TestCoverageCount,
3418
3418
  public branchCoverage?: TestCoverageCount,
3419
3419
  public declarationCoverage?: TestCoverageCount,
3420
+ public includesTests?: theia.TestItem[],
3420
3421
  ) { }
3421
3422
  }
3422
3423