mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Fix #27529
This commit is contained in:
@@ -535,6 +535,7 @@ export function createApiFactory(
|
||||
WorkspaceEdit: extHostTypes.WorkspaceEdit,
|
||||
ProgressLocation: extHostTypes.ProgressLocation,
|
||||
TreeItemCollapsibleState: extHostTypes.TreeItemCollapsibleState,
|
||||
TreeItem: extHostTypes.TreeItem,
|
||||
ThemeColor: extHostTypes.ThemeColor,
|
||||
// functions
|
||||
TaskRevealKind: extHostTypes.TaskRevealKind,
|
||||
|
||||
@@ -1297,6 +1297,17 @@ export enum ProgressLocation {
|
||||
Window = 10,
|
||||
}
|
||||
|
||||
export class TreeItem {
|
||||
|
||||
iconPath?: string | Uri | { light: string | Uri; dark: string | Uri };
|
||||
command?: vscode.Command;
|
||||
contextValue?: string;
|
||||
|
||||
constructor(public label: string, public collapsibleState: vscode.TreeItemCollapsibleState = TreeItemCollapsibleState.None) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export enum TreeItemCollapsibleState {
|
||||
None = 0,
|
||||
Collapsed = 1,
|
||||
|
||||
Reference in New Issue
Block a user