Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommentsContribution

Hierarchy

  • CommentsContribution

Index

Constructors

constructor

Properties

Private addInProgress

addInProgress: boolean

Protected Readonly commands

commands: CommandRegistry

Private commentInfos

commentInfos: CommentInfoMain[]

Protected Readonly commentService

commentService: CommentsService

Private commentWidgets

commentWidgets: CommentThreadWidget[]

Protected Readonly commentsContextKeyService

commentsContextKeyService: CommentsContextKeyService

Protected Readonly contextKeyService

contextKeyService: ContextKeyService

Protected Readonly editorManager

editorManager: EditorManager

Private emptyThreadsToAddQueue

emptyThreadsToAddQueue: [number, undefined | EditorMouseEvent][] = []

Protected Readonly menus

menus: MenuModelRegistry

Protected Readonly rangeDecorator

rangeDecorator: CommentingRangeDecorator

Accessors

editor

  • get editor(): undefined | IStandaloneCodeEditor

Methods

addCommentAtLine

  • addCommentAtLine(lineNumber: number, e: undefined | EditorMouseEvent): Promise<void>

addCommentAtLine2

  • addCommentAtLine2(lineNumber: number, ownerId: string): void

addOrToggleCommentAtLine

  • addOrToggleCommentAtLine(lineNumber: number, e: undefined | EditorMouseEvent): Promise<void>

Private beginCompute

  • beginCompute(): Promise<void>

Private displayCommentThread

  • displayCommentThread(owner: string, thread: CommentThread): void

Private getCurrentEditor

  • getCurrentEditor(): undefined | EditorWidget

Private onEditorMouseDown

  • onEditorMouseDown(e: EditorMouseEvent): void

Private processNextThreadToAdd

  • processNextThreadToAdd(): void

Private setComments