forked from microsoft/vscode-pull-request-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvscode.proposed.treeViewMarkdownMessage.d.ts
28 lines (25 loc) · 1.28 KB
/
vscode.proposed.treeViewMarkdownMessage.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
/*---------------------------------------------------------------------------------------------
* 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' {
export interface TreeView2<T> extends Disposable {
readonly onDidExpandElement: Event<TreeViewExpansionEvent<T>>;
readonly onDidCollapseElement: Event<TreeViewExpansionEvent<T>>;
readonly selection: readonly T[];
readonly onDidChangeSelection: Event<TreeViewSelectionChangeEvent<T>>;
readonly visible: boolean;
readonly onDidChangeVisibility: Event<TreeViewVisibilityChangeEvent>;
readonly onDidChangeCheckboxState: Event<TreeCheckboxChangeEvent<T>>;
title?: string;
description?: string;
badge?: ViewBadge | undefined;
reveal(element: T, options?: { select?: boolean; focus?: boolean; expand?: boolean | number }): Thenable<void>;
/**
* An optional human-readable message that will be rendered in the view.
* Only a subset of markdown is supported.
* Setting the message to null, undefined, or empty string will remove the message from the view.
*/
message?: string | MarkdownString;
}
}