提交 7750596d 编写于 作者: P Pine Wu

Remove shouldInitiallyExpand

上级 ec7f0779
......@@ -1353,7 +1353,6 @@ declare module 'vscode' {
resolveChildren(node: T): T[] | Thenable<T[]>;
getLabel?(node: T): string;
getShouldInitiallyExpand?(node: T): boolean;
getHasChildren?(node: T): boolean;
getClickCommand?(node: T): string;
}
......
......@@ -14,7 +14,6 @@ export class InternalTreeExplorerNode implements TreeExplorerNodeContent {
label: string = 'label';
hasChildren: boolean = true;
shouldInitiallyExpand: boolean = false;
clickCommand: string = null;
constructor(node: any, provider: TreeExplorerNodeProvider<any>) {
......@@ -26,9 +25,6 @@ export class InternalTreeExplorerNode implements TreeExplorerNodeContent {
if (provider.getHasChildren) {
this.hasChildren = provider.getHasChildren(node);
}
if (provider.getShouldInitiallyExpand) {
this.shouldInitiallyExpand = provider.getShouldInitiallyExpand(node);
}
if (provider.getClickCommand) {
this.clickCommand = provider.getClickCommand(node);
}
......@@ -44,6 +40,5 @@ export interface InternalTreeExplorerNodeProvider {
export interface TreeExplorerNodeContent {
label: string;
hasChildren: boolean;
shouldInitiallyExpand: boolean;
clickCommand: string;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册