mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
@@ -465,6 +465,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
set label(value: string | undefined) { that.label = value; },
|
||||
get state(): vscode.CommentThreadState | { resolved?: vscode.CommentThreadState; applicability?: vscode.CommentThreadApplicability } | undefined { return that.state; },
|
||||
set state(value: vscode.CommentThreadState | { resolved?: vscode.CommentThreadState; applicability?: vscode.CommentThreadApplicability }) { that.state = value; },
|
||||
reveal: (options?: vscode.CommentThreadRevealOptions) => that.reveal(options),
|
||||
dispose: () => {
|
||||
that.dispose();
|
||||
}
|
||||
@@ -548,6 +549,11 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
return;
|
||||
}
|
||||
|
||||
async reveal(options?: vscode.CommentThreadRevealOptions): Promise<void> {
|
||||
checkProposedApiEnabled(this.extensionDescription, 'commentReveal');
|
||||
return proxy.$revealCommentThread(this._commentControllerHandle, this.handle, { preserveFocus: false, focusReply: false, ...options });
|
||||
}
|
||||
|
||||
dispose() {
|
||||
this._isDiposed = true;
|
||||
this._acceptInputDisposables.dispose();
|
||||
|
||||
Reference in New Issue
Block a user