Skip to content

Commit

Permalink
#26948 Provide none collapsible state
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 29, 2017
1 parent 7ad4a22 commit 2d74e46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ declare module 'vscode' {

/**
* Collapsible state of the tree item.
* Required only when item has children.
*/
readonly collapsibleState?: TreeItemCollapsibleState;
}
Expand All @@ -80,6 +79,10 @@ declare module 'vscode' {
* Collapsible state of the tree item
*/
export enum TreeItemCollapsibleState {
/**
* Determines an item can be neither collapsed nor expanded. Implies it has no children.
*/
None = 0,
/**
* Determines an item is collapsed
*/
Expand Down
3 changes: 2 additions & 1 deletion src/vs/workbench/parts/views/browser/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class ViewLocation {
}

export enum TreeItemCollapsibleState {
None = 0,
Collapsed = 1,
Expanded = 2
}
Expand Down Expand Up @@ -48,7 +49,7 @@ export interface IViewDescriptor {
readonly ctor: IViewConstructorSignature;

readonly order?: number;

}

export interface ITreeItem {
Expand Down

0 comments on commit 2d74e46

Please sign in to comment.