@@ -346,6 +346,10 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
346
346
this . _onDidUpdateCommentThread . fire ( ) ;
347
347
}
348
348
349
+ get hasDraftComments ( ) : boolean {
350
+ return this . _comments . some ( comment => comment . visibility === types . CommentVisibility . Draft ) ;
351
+ }
352
+
349
353
private _localDisposables : types . Disposable [ ] ;
350
354
351
355
private _isDiposed : boolean ;
@@ -418,6 +422,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
418
422
set canReply ( state : boolean ) { that . canReply = state ; } ,
419
423
get contextValue ( ) { return that . contextValue ; } ,
420
424
set contextValue ( value : string | undefined ) { that . contextValue = value ; } ,
425
+ get hasDraftComments ( ) { return that . hasDraftComments ; } ,
421
426
get label ( ) { return that . label ; } ,
422
427
set label ( value : string | undefined ) { that . label = value ; } ,
423
428
get state ( ) { return that . state ; } ,
@@ -662,6 +667,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
662
667
userIconPath : iconPath ,
663
668
label : vscodeComment . label ,
664
669
commentReactions : vscodeComment . reactions ? vscodeComment . reactions . map ( reaction => convertToReaction ( reaction ) ) : undefined ,
670
+ visibility : vscodeComment . visibility ,
665
671
timestamp : vscodeComment . timestamp ?. toJSON ( )
666
672
} ;
667
673
}
0 commit comments