createCommentThread

abstract fun createCommentThread(uri: Uri, range: Range, comments: ReadonlyArray<Comment>): CommentThread(source)

Create a comment thread. The comment thread will be displayed in visible text editors (if the resource matches) and Comments Panel once created.

Parameters

uri

The uri of the document the thread has been created on.

range

The range the comment thread is located within the document.

comments

The ordered comments of the thread.

Online Documentation