Skip to content

Commit fe5a70e

Browse files
author
Rachel Macfarlane
committed
Fix build
1 parent 2275762 commit fe5a70e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/vs/editor/contrib/referenceSearch/referencesWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export class ReferenceWidget extends PeekViewWidget {
469469
}));
470470

471471
// make sure things are rendered
472-
dom.addClass(this.container, 'results-loaded');
472+
dom.addClass(this.container!, 'results-loaded');
473473
dom.show(this._treeContainer);
474474
dom.show(this._previewContainer);
475475
this._splitView.layout(this._dim.width);

src/vs/workbench/contrib/debug/browser/exceptionWidget.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export class ExceptionWidget extends ZoneWidget {
6363
this.setCssClass('exception-widget');
6464
// Set the font size and line height to the one from the editor configuration.
6565
const fontInfo = this.editor.getConfiguration().fontInfo;
66-
this.container.style.fontSize = `${fontInfo.fontSize}px`;
67-
this.container.style.lineHeight = `${fontInfo.lineHeight}px`;
66+
container.style.fontSize = `${fontInfo.fontSize}px`;
67+
container.style.lineHeight = `${fontInfo.lineHeight}px`;
6868

6969
let title = $('.title');
7070
title.textContent = this.exceptionInfo.id ? nls.localize('exceptionThrownWithId', 'Exception has occurred: {0}', this.exceptionInfo.id) : nls.localize('exceptionThrown', 'Exception has occurred.');
@@ -87,11 +87,11 @@ export class ExceptionWidget extends ZoneWidget {
8787

8888
protected _doLayout(_heightInPixel: number | undefined, _widthInPixel: number | undefined): void {
8989
// Reload the height with respect to the exception text content and relayout it to match the line count.
90-
this.container.style.height = 'initial';
90+
this.container!.style.height = 'initial';
9191

9292
const lineHeight = this.editor.getConfiguration().lineHeight;
9393
const arrowHeight = Math.round(lineHeight / 3);
94-
const computedLinesNumber = Math.ceil((this.container.offsetHeight + arrowHeight) / lineHeight);
94+
const computedLinesNumber = Math.ceil((this.container!.offsetHeight + arrowHeight) / lineHeight);
9595

9696
this._relayout(computedLinesNumber);
9797
}

0 commit comments

Comments
 (0)