CommentController

A comment controller is able to provide comments support to the editor and provide users various ways to interact with comments.

Online Documentation

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
abstract val id: String

The id of this comment controller.

Link copied to clipboard
abstract val label: String

The human-readable label of this comment controller.

Link copied to clipboard
abstract var options: CommentOptions?

Comment controller options

Link copied to clipboard
abstract 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 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.

Link copied to clipboard
abstract override fun dispose()

Dispose this comment controller.