import * as theia from '@theia/plugin'; import { RPCProtocol } from '../common/rpc-protocol'; import { CommandRegistryImpl } from './command-registry'; import { UriComponents } from '../common/uri-components'; import { Range, CommentOptions } from '../common/plugin-api-rpc-model'; import { DocumentsExtImpl } from './documents'; import { CommentsExt, CommentsMain, Plugin as InternalPlugin } from '../common/plugin-api-rpc'; export declare class CommentsExtImpl implements CommentsExt { readonly rpc: RPCProtocol; readonly commands: CommandRegistryImpl; readonly _documents: DocumentsExtImpl; private handle; private readonly proxy; private readonly commentControllers; private readonly commentControllersByExtension; constructor(rpc: RPCProtocol, commands: CommandRegistryImpl, _documents: DocumentsExtImpl); createCommentController(plugin: InternalPlugin, id: string, label: string): theia.CommentController; $createCommentThreadTemplate(commentControllerHandle: number, uriComponents: UriComponents, range: Range): void; $updateCommentThreadTemplate(commentControllerHandle: number, threadHandle: number, range: Range): Promise; $deleteCommentThread(commentControllerHandle: number, commentThreadHandle: number): Promise; $provideCommentingRanges(commentControllerHandle: number, uriComponents: UriComponents, token: theia.CancellationToken): Promise<{ ranges: Range[]; fileComments: boolean; } | undefined>; } export declare class ExtHostCommentThread implements theia.CommentThread, theia.Disposable { private proxy; private commentController; private _id; private _uri; private _range; private _comments; private static _handlePool; readonly handle: number; commentHandle: number; private modifications; set threadId(id: string); get threadId(): string; get id(): string; get resource(): theia.Uri; get uri(): theia.Uri; private readonly _onDidUpdateCommentThread; readonly onDidUpdateCommentThread: import("@theia/core/lib/common/event").Event; set range(range: theia.Range | undefined); get range(): theia.Range | undefined; private _label; get label(): string | undefined; set label(label: string | undefined); private _contextValue; get contextValue(): string | undefined; set contextValue(context: string | undefined); get comments(): theia.Comment[]; set comments(newComments: theia.Comment[]); private collapseState?; get collapsibleState(): theia.CommentThreadCollapsibleState; set collapsibleState(newState: theia.CommentThreadCollapsibleState); private _state?; get state(): theia.CommentThreadState; set state(newState: theia.CommentThreadState); private localDisposables; private _isDisposed; get isDisposed(): boolean; private _canReply; get canReply(): boolean | theia.CommentAuthorInformation; set canReply(canReply: boolean | theia.CommentAuthorInformation); private commentsMap; private acceptInputDisposables; constructor(proxy: CommentsMain, commentController: CommentController, _id: string | undefined, _uri: theia.Uri, _range: theia.Range | undefined, _comments: theia.Comment[], extensionId: string); eventuallyUpdateCommentThread(): void; getCommentByUniqueId(uniqueId: number): theia.Comment | undefined; dispose(): void; } declare class CommentController implements theia.CommentController { private extension; private proxy; private _handle; private _id; private _label; constructor(extension: string, proxy: CommentsMain, _handle: number, _id: string, _label: string); private readonly threads; readonly commentingRangeProvider?: theia.CommentingRangeProvider; get id(): string; get label(): string; get handle(): number; private _options; get options(): CommentOptions | undefined; set options(options: CommentOptions | undefined); createCommentThread(resource: theia.Uri, range: theia.Range, comments: theia.Comment[]): theia.CommentThread; $createCommentThreadTemplate(uriComponents: UriComponents, range: Range): ExtHostCommentThread; $updateCommentThreadTemplate(threadHandle: number, range: Range): void; $deleteCommentThread(threadHandle: number): void; getCommentThread(handle: number): ExtHostCommentThread | undefined; dispose(): void; } export {}; //# sourceMappingURL=comments.d.ts.map