Closes #105667 - finalizes treeview description

This commit is contained in:
Eric Amodio
2020-09-23 15:56:37 -04:00
parent d4ae4a64ec
commit eabb747d82
3 changed files with 6 additions and 13 deletions
+6
View File
@@ -8599,6 +8599,12 @@ declare module 'vscode' {
*/
title?: string;
/**
* An optional human-readable description which is rendered less prominently in the title of the view.
* Setting the title description to null, undefined, or empty string will remove the description from the view.
*/
description?: string;
/**
* Reveals the given element in the tree view.
* If the tree view is not visible then the tree view is shown and element is revealed.
-11
View File
@@ -2156,17 +2156,6 @@ declare module 'vscode' {
//#endregion
//#region https://github.com/microsoft/vscode/issues/105667
export interface TreeView<T> {
/**
* An optional human-readable description that will be rendered in the title of the view.
* Setting the title description to null, undefined, or empty string will remove the title description from the view.
*/
description?: string | undefined;
}
//#endregion
//#region https://github.com/microsoft/vscode/issues/103120 @alexr00
export class ThemeIcon2 extends ThemeIcon {
@@ -102,11 +102,9 @@ export class ExtHostTreeViews implements ExtHostTreeViewsShape {
treeView.title = title;
},
get description() {
checkProposedApiEnabled(extension);
return treeView.description;
},
set description(description: string | undefined) {
checkProposedApiEnabled(extension);
treeView.description = description;
},
reveal: (element: T, options?: IRevealOptions): Promise<void> => {