Path: blob/main/src/vscode-dts/vscode.proposed.commentReveal.d.ts
3290 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45declare module 'vscode' {67// @alexr00 https://github.com/microsoft/vscode/issues/16725389export enum CommentThreadFocus {10/**11* Focus the comment editor if the thread supports replying.12*/13Reply = 1,14/**15* Focus the revealed comment.16*/17Comment = 218}1920/**21* Options to reveal a comment thread in an editor.22*/23export interface CommentThreadRevealOptions {2425/**26* Where to move the focus to when revealing the comment thread.27* If undefined, the focus will not be changed.28*/29focus?: CommentThreadFocus;30}3132export interface CommentThread2 {33/**34* Reveal the comment thread in an editor. If no comment is provided, the first comment in the thread will be revealed.35*/36reveal(comment?: Comment, options?: CommentThreadRevealOptions): Thenable<void>;3738/**39* Collapse the comment thread in an editor.40*/41hide(): Thenable<void>;42}4344}454647