mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 23:44:09 +01:00
Closes #105667 - finalizes treeview description
This commit is contained in:
Vendored
+6
@@ -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.
|
||||
|
||||
Vendored
-11
@@ -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> => {
|
||||
|
||||
Reference in New Issue
Block a user