@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.
- package/README.md +3 -2
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +4 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js +35 -11
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js +5 -2
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +2 -1
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +3 -2
- package/lib/plugin/types-impl.js.map +1 -1
- package/package.json +29 -29
- package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +42 -13
- package/src/main/browser/notebooks/renderers/output-webview-internal.ts +6 -2
- package/src/plugin/types-impl.ts +1 -0
|
@@ -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(
|
|
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.
|
|
770
|
+
cell.updateCellHeight(event.data.height);
|
|
767
771
|
}
|
|
768
772
|
break;
|
|
769
773
|
case 'outputVisibilityChanged':
|
package/src/plugin/types-impl.ts
CHANGED
|
@@ -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
|
|