null check

This commit is contained in:
Peng Lyu
2018-04-23 10:09:13 -07:00
parent 16041530c2
commit faa4bd1fff
5 changed files with 68 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ export class MainThreadComments extends Disposable implements MainThreadComments
const outerEditorURI = outerEditor.getModel().uri;
this.provideDocumentComments(outerEditorURI).then(commentInfos => {
this._commentService.setComments(outerEditorURI, commentInfos);
this._commentService.setComments(outerEditorURI, commentInfos.filter(info => info !== null));
});
for (const handle of keys(this._documentProviders)) {