mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Better naming and some doc
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import { ITreeNode, TreeContentProvider } from 'vscode';
|
||||
import { TreeContentNode, TreeContentProvider } from 'vscode';
|
||||
import {TPromise} from 'vs/base/common/winjs.base';
|
||||
import {Disposable} from 'vs/workbench/api/node/extHostTypes';
|
||||
import {IThreadService} from 'vs/workbench/services/thread/common/threadService';
|
||||
@@ -72,7 +72,7 @@ export class ExtHostExplorers extends ExtHostExplorersShape {
|
||||
}
|
||||
}
|
||||
|
||||
export class ExtHostTreeNode implements ITreeNode {
|
||||
export class ExtHostTreeNode implements TreeContentNode {
|
||||
static idCounter = 1;
|
||||
|
||||
id: number;
|
||||
@@ -81,7 +81,7 @@ export class ExtHostTreeNode implements ITreeNode {
|
||||
isExpanded: boolean;
|
||||
children: ExtHostTreeNode[];
|
||||
|
||||
constructor(node: ITreeNode, parent: ExtHostTreeNode, treeNodeMap: { [id: number]: ExtHostTreeNode}) {
|
||||
constructor(node: TreeContentNode, parent: ExtHostTreeNode, treeNodeMap: { [id: number]: ExtHostTreeNode}) {
|
||||
this.id = ExtHostTreeNode.idCounter++;
|
||||
|
||||
this.label = node.label;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import {ITreeNode} from 'vscode';
|
||||
import {TreeContentNode} from 'vscode';
|
||||
import {TPromise} from 'vs/base/common/winjs.base';
|
||||
import {IThreadService} from 'vs/workbench/services/thread/common/threadService';
|
||||
import {ExtHostContext, MainThreadExplorersShape, ExtHostExplorersShape} from './extHost.protocol';
|
||||
|
||||
Reference in New Issue
Block a user