@@ -171,7 +171,7 @@ export class PullRequestCommentController implements CommentHandler, CommentReac
171171 let newThread : GHPRCommentThread | undefined = undefined ;
172172 if ( index > - 1 ) {
173173 newThread = this . _pendingCommentThreadAdds [ index ] ;
174- newThread . threadId = thread . id ;
174+ newThread . gitHubThreadId = thread . id ;
175175 newThread . comments = thread . comments . map ( c => new GHPRComment ( c , newThread ! ) ) ;
176176 this . _pendingCommentThreadAdds . splice ( index , 1 ) ;
177177 } else {
@@ -212,7 +212,7 @@ export class PullRequestCommentController implements CommentHandler, CommentReac
212212
213213 e . changed . forEach ( thread => {
214214 const key = this . getCommentThreadCacheKey ( thread . path , thread . diffSide === DiffSide . LEFT ) ;
215- const index = this . _commentThreadCache [ key ] . findIndex ( t => t . threadId === thread . id ) ;
215+ const index = this . _commentThreadCache [ key ] . findIndex ( t => t . gitHubThreadId === thread . id ) ;
216216 if ( index > - 1 ) {
217217 const matchingThread = this . _commentThreadCache [ key ] [ index ] ;
218218 updateThread ( matchingThread , thread ) ;
@@ -221,7 +221,7 @@ export class PullRequestCommentController implements CommentHandler, CommentReac
221221
222222 e . removed . forEach ( async thread => {
223223 const key = this . getCommentThreadCacheKey ( thread . path , thread . diffSide === DiffSide . LEFT ) ;
224- const index = this . _commentThreadCache [ key ] . findIndex ( t => t . threadId === thread . id ) ;
224+ const index = this . _commentThreadCache [ key ] . findIndex ( t => t . gitHubThreadId === thread . id ) ;
225225 if ( index > - 1 ) {
226226 const matchingThread = this . _commentThreadCache [ key ] [ index ] ;
227227 this . _commentThreadCache [ key ] . splice ( index , 1 ) ;
@@ -432,7 +432,7 @@ export class PullRequestCommentController implements CommentHandler, CommentReac
432432 await this . createCommentOnResolve ( thread , input ) ;
433433 }
434434
435- await this . pullRequestModel . resolveReviewThread ( thread . threadId ) ;
435+ await this . pullRequestModel . resolveReviewThread ( thread . gitHubThreadId ) ;
436436 } catch ( e ) {
437437 vscode . window . showErrorMessage ( `Resolving conversation failed: ${ e } ` ) ;
438438 }
@@ -444,7 +444,7 @@ export class PullRequestCommentController implements CommentHandler, CommentReac
444444 await this . createCommentOnResolve ( thread , input ) ;
445445 }
446446
447- await this . pullRequestModel . unresolveReviewThread ( thread . threadId ) ;
447+ await this . pullRequestModel . unresolveReviewThread ( thread . gitHubThreadId ) ;
448448 } catch ( e ) {
449449 vscode . window . showErrorMessage ( `Unresolving conversation failed: ${ e } ` ) ;
450450 }
0 commit comments