in src/controller/commentController.ts [190:207]
private async createComment(uri: vscode.Uri, range: vscode.Range) {
const comment = new AssayComment(
"Marked for review.",
vscode.CommentMode.Preview,
{ name: "Notes:" }
);
const thread = this.controller.createCommentThread(uri, range, [comment]);
comment.thread = thread as AssayThread;
thread.collapsibleState = 1;
thread.canReply = false;
const { filepath, range: rangeString } = await this.getThreadLocation(
thread as AssayThread
);
thread.label = `${filepath}${RangeHelper.truncate(rangeString)}`;
return comment;
}