commentProvider can control collapse state of a thread

This commit is contained in:
Peng Lyu
2018-04-20 15:04:00 -07:00
parent e1c6d458a7
commit 5a3c4d1930
10 changed files with 83 additions and 19 deletions

View File

@@ -47,6 +47,10 @@ export class MainThreadComments extends Disposable implements MainThreadComments
return;
}
if (!outerEditor.getModel()) {
return;
}
const outerEditorURI = outerEditor.getModel().uri;
this.provideComments(outerEditorURI).then(commentInfos => {
this._commentService.setComments(outerEditorURI, commentInfos);