Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vscode-dts/vscode.proposed.commentReveal.d.ts
3290 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
declare module 'vscode' {
7
8
// @alexr00 https://github.com/microsoft/vscode/issues/167253
9
10
export enum CommentThreadFocus {
11
/**
12
* Focus the comment editor if the thread supports replying.
13
*/
14
Reply = 1,
15
/**
16
* Focus the revealed comment.
17
*/
18
Comment = 2
19
}
20
21
/**
22
* Options to reveal a comment thread in an editor.
23
*/
24
export interface CommentThreadRevealOptions {
25
26
/**
27
* Where to move the focus to when revealing the comment thread.
28
* If undefined, the focus will not be changed.
29
*/
30
focus?: CommentThreadFocus;
31
}
32
33
export interface CommentThread2 {
34
/**
35
* Reveal the comment thread in an editor. If no comment is provided, the first comment in the thread will be revealed.
36
*/
37
reveal(comment?: Comment, options?: CommentThreadRevealOptions): Thenable<void>;
38
39
/**
40
* Collapse the comment thread in an editor.
41
*/
42
hide(): Thenable<void>;
43
}
44
45
}
46
47