Strict init for tasks, file picker, and custom view

Part of #78168
This commit is contained in:
Alex Ross
2019-08-05 14:38:04 +02:00
parent 222401c661
commit 780a5085d7
4 changed files with 29 additions and 29 deletions

View File

@@ -247,7 +247,7 @@ class ExtHostTreeView<T> extends Disposable {
.then(treeNode => this.proxy.$reveal(this.viewId, treeNode.item, parentChain.map(p => p.item), { select, focus, expand })), error => this.logService.error(error));
}
private _message: string | MarkdownString;
private _message: string | MarkdownString = '';
get message(): string | MarkdownString {
return this._message;
}
@@ -565,9 +565,9 @@ class ExtHostTreeView<T> extends Disposable {
if (node) {
if (node.children) {
for (const child of node.children) {
const childEleement = this.elements.get(child.item.handle);
if (childEleement) {
this.clear(childEleement);
const childElement = this.elements.get(child.item.handle);
if (childElement) {
this.clear(childElement);
}
}
}
@@ -583,9 +583,9 @@ class ExtHostTreeView<T> extends Disposable {
if (node) {
if (node.children) {
for (const child of node.children) {
const childEleement = this.elements.get(child.item.handle);
if (childEleement) {
this.clear(childEleement);
const childElement = this.elements.get(child.item.handle);
if (childElement) {
this.clear(childElement);
}
}
}