A collection of comments representing a conversation at a particular range in a document.

Implements

Constructors

Properties

_canReply: boolean = true
_comments: Comment[]
_contextValue: undefined | string
_id: undefined | string
_isDisposed: boolean
_label: undefined | string
_onDidUpdateCommentThread: Emitter<void> = ...
_range: Range
_uri: Uri
acceptInputDisposables: DisposableCollection = ...
commentController: CommentController
commentHandle: number = 0
commentsMap: Map<Comment, number> = ...
handle: number = ...
localDisposables: Disposable[]
modifications: Partial<{
    canReply: boolean;
    collapsibleState: CommentThreadCollapsibleState;
    comments: Comment[];
    contextValue: undefined | string;
    label: undefined | string;
    range: Range;
    state: CommentThreadState;
}> = ...

Type declaration

onDidUpdateCommentThread: Event<void> = ...
_handlePool: number = 0

Accessors

  • get contextValue(): undefined | string
  • Context value of the comment thread. This can be used to contribute thread specific actions. For example, a comment thread is given a context value as editable. When contributing actions to comments/commentThread/title using menus extension point, you can specify context value for key commentThread in when expression like commentThread == editable.

     "contributes": {
    "menus": {
    "comments/commentThread/title": [
    {
    "command": "extension.deleteCommentThread",
    "when": "commentThread == editable"
    }
    ]
    }
    }

    This will show action extension.deleteCommentThread only for comment threads with contextValue is editable.

    Returns undefined | string

  • set contextValue(context): void
  • Context value of the comment thread. This can be used to contribute thread specific actions. For example, a comment thread is given a context value as editable. When contributing actions to comments/commentThread/title using menus extension point, you can specify context value for key commentThread in when expression like commentThread == editable.

     "contributes": {
    "menus": {
    "comments/commentThread/title": [
    {
    "command": "extension.deleteCommentThread",
    "when": "commentThread == editable"
    }
    ]
    }
    }

    This will show action extension.deleteCommentThread only for comment threads with contextValue is editable.

    Parameters

    • context: undefined | string

    Returns void

Methods