dispose empty comment thread when collapse.

This commit is contained in:
Peng Lyu
2019-05-23 16:37:33 -07:00
parent a9e31b19d7
commit 346da6b01a
5 changed files with 36 additions and 0 deletions

View File

@@ -366,6 +366,14 @@ export class MainThreadCommentController {
thread.dispose();
}
deleteCommentThreadMain(commentThreadId: string) {
this._threads.forEach(thread => {
if (thread.threadId === commentThreadId) {
this._proxy.$deleteCommentThread(this._handle, thread.commentThreadHandle);
}
});
}
updateInput(input: string) {
let thread = this.activeCommentThread;