File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export class CommentFormActions implements IDisposable {
56
56
const lastAction = this . _actions [ 0 ] ;
57
57
58
58
if ( lastAction . enabled ) {
59
- this . actionHandler ( lastAction ) ;
59
+ return this . actionHandler ( lastAction ) ;
60
60
}
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
165
165
}
166
166
167
167
async submitComment ( ) : Promise < void > {
168
- this . _commentFormActions ?. triggerDefaultAction ( ) ;
168
+ return this . _commentFormActions ?. triggerDefaultAction ( ) ;
169
169
}
170
170
171
171
setCommentEditorDecorations ( ) {
@@ -311,6 +311,7 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
311
311
312
312
private hideReplyArea ( ) {
313
313
this . commentEditor . getDomNode ( ) ! . style . outline = '' ;
314
+ this . commentEditor . setValue ( '' ) ;
314
315
this . _pendingComment = '' ;
315
316
this . form . classList . remove ( 'expand' ) ;
316
317
this . _error . textContent = '' ;
Original file line number Diff line number Diff line change @@ -296,9 +296,9 @@ export class CommentThreadWidget<T extends IRange | ICellRange = IRange> extends
296
296
async submitComment ( ) {
297
297
const activeComment = this . _body . activeComment ;
298
298
if ( activeComment ) {
299
- activeComment . submitComment ( ) ;
299
+ return activeComment . submitComment ( ) ;
300
300
} else if ( ( this . _commentReply ?. getPendingComment ( ) ?. length ?? 0 ) > 0 ) {
301
- this . _commentReply ?. submitComment ( ) ;
301
+ return this . _commentReply ?. submitComment ( ) ;
302
302
}
303
303
}
304
304
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
413
413
}
414
414
415
415
async submitComment ( ) : Promise < void > {
416
- this . _commentThreadWidget . submitComment ( ) ;
416
+ return this . _commentThreadWidget . submitComment ( ) ;
417
417
}
418
418
419
419
_refresh ( dimensions : dom . Dimension ) {
You can’t perform that action at this time.
0 commit comments