-
Notifications
You must be signed in to change notification settings - Fork 31.8k
/
Copy pathvscode.proposed.commentThreadApplicability.d.ts
40 lines (36 loc) · 1.45 KB
/
vscode.proposed.commentThreadApplicability.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
/*---------------------------------------------------------------------------------------------
* 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/207402
export enum CommentThreadApplicability {
Current = 0,
Outdated = 1
}
export interface CommentThread2 {
/* @api this is a bit weird for the extension now. The CommentThread is a managed object, which means it listens
* to when it's properties are set, but not if it's properties are modified. This means that this will not work to update the resolved state
*
* thread.state.resolved = CommentThreadState.Resolved;
*
* but this will work
*
* thread.state = {
* resolved: CommentThreadState.Resolved
* applicability: thread.state.applicability
* };
*
* Worth noting that we already have this problem for the `comments` property.
*/
state?: CommentThreadState | { resolved?: CommentThreadState; applicability?: CommentThreadApplicability };
readonly uri: Uri;
range: Range | undefined;
comments: readonly Comment[];
collapsibleState: CommentThreadCollapsibleState;
canReply: boolean | CommentAuthorInformation;
contextValue?: string;
label?: string;
dispose(): void;
}
}