Stricter tslint rules (#9352)

This commit is contained in:
Amir Omidi
2020-03-06 13:06:44 -08:00
committed by GitHub
parent f3a255a7f7
commit 20f7670b32
16 changed files with 44 additions and 32 deletions

View File

@@ -235,7 +235,7 @@ export class CustomTreeView extends Disposable implements ITreeView {
this._register(this.themeService.onThemeChange(() => this.doRefresh([this.root]) /** soft refresh **/));
this._register(this.configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('explorer.decorations')) {
this.doRefresh([this.root]); /** soft refresh **/
this.doRefresh([this.root]).catch(onUnexpectedError); /** soft refresh **/
}
}));
this.markdownRenderer = instantiationService.createInstance(MarkdownRenderer);
@@ -272,7 +272,7 @@ export class CustomTreeView extends Disposable implements ITreeView {
}
};
this.updateMessage();
this.refresh();
this.refresh().catch(onUnexpectedError);
} else {
this._dataProvider = null;
this.updateMessage();
@@ -361,7 +361,7 @@ export class CustomTreeView extends Disposable implements ITreeView {
}
if (this.isVisible && this.elementsToRefresh.length) {
this.doRefresh(this.elementsToRefresh);
this.doRefresh(this.elementsToRefresh).catch(onUnexpectedError);
this.elementsToRefresh = [];
}
}