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

    Implemented by

    Index

    Properties

    onDidChangeActiveCommentingRange: Event<
        { commentingRangesInfo: CommentingRanges; range: Range },
    >
    onDidChangeActiveCommentThread: Event<null | CommentThread>
    onDidDeleteDataProvider: Event<string>
    onDidSetAllCommentThreads: Event<WorkspaceCommentThreadsEventMain>
    onDidSetDataProvider: Event<void>
    onDidSetResourceCommentInfos: Event<ResourceCommentThreadEvent>
    onDidUpdateCommentThreads: Event<CommentThreadChangedEventMain>

    Methods