Skip to content

Commit eabb747

Browse files
author
Eric Amodio
committed
Closes microsoft#105667 - finalizes treeview description
1 parent d4ae4a6 commit eabb747

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

src/vs/vscode.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8599,6 +8599,12 @@ declare module 'vscode' {
85998599
*/
86008600
title?: string;
86018601

8602+
/**
8603+
* An optional human-readable description which is rendered less prominently in the title of the view.
8604+
* Setting the title description to null, undefined, or empty string will remove the description from the view.
8605+
*/
8606+
description?: string;
8607+
86028608
/**
86038609
* Reveals the given element in the tree view.
86048610
* If the tree view is not visible then the tree view is shown and element is revealed.

src/vs/vscode.proposed.d.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,17 +2156,6 @@ declare module 'vscode' {
21562156

21572157
//#endregion
21582158

2159-
//#region https://github.com/microsoft/vscode/issues/105667
2160-
2161-
export interface TreeView<T> {
2162-
/**
2163-
* An optional human-readable description that will be rendered in the title of the view.
2164-
* Setting the title description to null, undefined, or empty string will remove the title description from the view.
2165-
*/
2166-
description?: string | undefined;
2167-
}
2168-
//#endregion
2169-
21702159
//#region https://github.com/microsoft/vscode/issues/103120 @alexr00
21712160
export class ThemeIcon2 extends ThemeIcon {
21722161

src/vs/workbench/api/common/extHostTreeViews.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ export class ExtHostTreeViews implements ExtHostTreeViewsShape {
102102
treeView.title = title;
103103
},
104104
get description() {
105-
checkProposedApiEnabled(extension);
106105
return treeView.description;
107106
},
108107
set description(description: string | undefined) {
109-
checkProposedApiEnabled(extension);
110108
treeView.description = description;
111109
},
112110
reveal: (element: T, options?: IRevealOptions): Promise<void> => {

0 commit comments

Comments
 (0)