monaco-review
    Preparing search index...

    Class ReviewManager

    Index

    Constructors

    • Parameters

      • editor: IStandaloneCodeEditor
      • currentUser: string
      • OptionalonChange: OnActionsChanged
      • Optionalconfig: ReviewManagerConfig
      • Optionalverbose: boolean

      Returns ReviewManager

    Properties

    activeComment?: ReviewComment
    canAddCondition: IContextKey<boolean>
    canCancelCondition: IContextKey<boolean>
    commentHeightCache: Record<string, number> = {}
    config: ReviewManagerConfigPrivate
    currentCommentDecorations: IEditorDecorationsCollection
    currentLineDecorationLineNumber?: number
    currentLineDecorations: IEditorDecorationsCollection
    currentUser: string
    editId: string = ""
    editor: IStandaloneCodeEditor
    editorConfig: IEditorOptions
    editorElements: EditorElements
    editorMode: EditorMode
    events: ReviewCommentEvent[]
    inlineToolbarElements: InlineToolbarElements
    onChange?: OnActionsChanged
    verbose: boolean
    widgetInlineCommentEditor?: IContentWidget
    widgetInlineToolbar?: IContentWidget

    Methods

    • Parameters

      Returns ReviewCommentEvent

    • Parameters

      • element: HTMLElement
      • className: string

      Returns void

    • Returns "Add Comment" | "Reply to Comment" | "Edit Comment"

    • Returns void

    • Returns InlineToolbarElements

    • Returns EditorElements

    • Returns EditorElements

    • Returns InlineToolbarElements

    • Removes all view zones, decorations, widgets, actions and event listeners that this ReviewManager attached to the editor. Call this when unmounting the editor or the hosting component.

      Returns void

    • Parameters

      Returns void

    • Returns number | undefined

    • Returns number

    • Parameters

      • commentId: string

      Returns RenderStoreItem

    • Parameters

      • name: string

      Returns string

    • Parameters

      • ev: IEditorMouseEvent & IEventRenderStoreItem

      Returns void

    • Parameters

      • ev: IEditorMouseEvent & IEventRenderStoreItem

      Returns void

    • Parameters

      • e: KeyboardEvent

      Returns void

    • Returns void

    • Returns void

    • Parameters

      • events: ReviewCommentEvent[]

      Returns void

    • Parameters

      • direction: NavigationDirection

      Returns void

    • Parameters

      • id: string

      Returns ReviewCommentEvent

    • Parameters

      • OptionallineNumber: number

      Returns void

    • Programmatically select a comment by id - activates it, shows the toolbar and scrolls it into view. Pass undefined to clear the selection.

      Parameters

      • commentId: string | undefined

      Returns void

    • Parameters

      • value: boolean

      Returns void