Skip to content

Commit 46106c7

Browse files
authored
Enable commenting before revealing the comment (microsoft#153332)
1 parent ba34347 commit 46106c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/comments/browser/commentsView.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ export class CommentsPanel extends ViewPane {
215215
return false;
216216
}
217217

218+
if (!this.commentService.isCommentingEnabled) {
219+
this.commentService.enableCommenting(true);
220+
}
221+
218222
const range = element instanceof ResourceWithCommentThreads ? element.commentThreads[0].range : element.range;
219223

220224
const activeEditor = this.editorService.activeTextEditorControl;

0 commit comments

Comments
 (0)