-
Notifications
You must be signed in to change notification settings - Fork 28.3k
/
vscode.proposed.commentReveal.d.ts
45 lines (37 loc) · 1.22 KB
/
vscode.proposed.commentReveal.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'vscode' {
// @alexr00 https://github.com/microsoft/vscode/issues/167253
export enum CommentThreadFocus {
/**
* Focus the comment editor if the thread supports replying.
*/
Reply = 1,
/**
* Focus the revealed comment.
*/
Comment = 2
}
/**
* Options to reveal a comment thread in an editor.
*/
export interface CommentThreadRevealOptions {
/**
* Where to move the focus to when revealing the comment thread.
* If undefined, the focus will not be changed.
*/
focus?: CommentThreadFocus;
}
export interface CommentThread2 {
/**
* Reveal the comment thread in an editor. If no comment is provided, the first comment in the thread will be revealed.
*/
reveal(comment?: Comment, options?: CommentThreadRevealOptions): Thenable<void>;
/**
* Collapse the comment thread in an editor.
*/
hide(): Thenable<void>;
}
}