CommentController
A comment controller is able to provide comments support to the editor and provide users various ways to interact with comments.
Properties
Link copied to clipboard
Optional commenting range provider. Provide a list ranges which support commenting to any given resource uri.
Link copied to clipboard
Comment controller options
Link copied to clipboard
abstract external var reactionHandler: (comment: Comment, reaction: CommentReaction) -> PromiseLike<Void>?
Optional reaction handler for creating and deleting reactions on a Comment.
Functions
Link copied to clipboard
abstract external fun createCommentThread(uri: Uri, range: Range, comments: ReadonlyArray<Comment>): CommentThread
Create a comment thread. The comment thread will be displayed in visible text editors (if the resource matches) and Comments Panel once created.