add a bunch of strict field initializations

This commit is contained in:
Johannes Rieken
2019-07-31 12:30:30 +02:00
parent 28520b8210
commit 06701f533d
27 changed files with 67 additions and 69 deletions

View File

@@ -21,7 +21,7 @@ class EditorWebviewZone implements IViewZone {
readonly afterColumn: number;
readonly heightInLines: number;
private _id: number;
private _id?: number;
// suppressMouseDown?: boolean | undefined;
// heightInPx?: number | undefined;
// minWidthInPx?: number | undefined;
@@ -46,7 +46,7 @@ class EditorWebviewZone implements IViewZone {
}
dispose(): void {
this.editor.changeViewZones(accessor => accessor.removeZone(this._id));
this.editor.changeViewZones(accessor => this._id && accessor.removeZone(this._id));
}
}