interface CommentsService {
    onDidChangeActiveCommentThread: Event<null | CommentThread>;
    onDidChangeActiveCommentingRange: Event<{
        commentingRangesInfo: CommentingRanges;
        range: Range;
    }>;
    onDidDeleteDataProvider: Event<string>;
    onDidSetAllCommentThreads: Event<WorkspaceCommentThreadsEventMain>;
    onDidSetDataProvider: Event<void>;
    onDidSetResourceCommentInfos: Event<ResourceCommentThreadEvent>;
    onDidUpdateCommentThreads: Event<CommentThreadChangedEventMain>;
    createCommentThreadTemplate(owner, resource, range): void;
    disposeCommentThread(ownerId, threadId): void;
    getCommentController(owner): undefined | CommentController;
    getCommentingRanges(resource): Promise<Range[]>;
    getComments(resource): Promise<(null | CommentInfoMain)[]>;
    registerCommentController(owner, commentControl): void;
    removeWorkspaceComments(owner): void;
    setActiveCommentThread(commentThread): void;
    setDocumentComments(resource, commentInfos): void;
    setWorkspaceComments(owner, commentsByResource): void;
    unregisterCommentController(owner): void;
    updateCommentThreadTemplate(owner, threadHandle, range): Promise<void>;
    updateComments(ownerId, event): void;
}

Implemented by

Properties

onDidChangeActiveCommentThread: Event<null | CommentThread>
onDidChangeActiveCommentingRange: Event<{
    commentingRangesInfo: CommentingRanges;
    range: Range;
}>

Type declaration

onDidDeleteDataProvider: Event<string>
onDidSetAllCommentThreads: Event<WorkspaceCommentThreadsEventMain>
onDidSetDataProvider: Event<void>
onDidSetResourceCommentInfos: Event<ResourceCommentThreadEvent>
onDidUpdateCommentThreads: Event<CommentThreadChangedEventMain>

Methods