本文整理汇总了TypeScript中sql/workbench/api/node/sqlExtHost.protocol.MainThreadObjectExplorerShape类的典型用法代码示例。如果您正苦于以下问题:TypeScript protocol.MainThreadObjectExplorerShape类的具体用法?TypeScript protocol.MainThreadObjectExplorerShape怎么用?TypeScript protocol.MainThreadObjectExplorerShape使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了protocol.MainThreadObjectExplorerShape类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: ExtHostObjectExplorerNode
public $findNodes(connectionId: string, type: string, schema: string, name: string, database: string, parentObjectNames: string[]): Thenable<sqlops.objectexplorer.ObjectExplorerNode[]> {
return this._proxy.$findNodes(connectionId, type, schema, name, database, parentObjectNames).then(results => results.map(result => new ExtHostObjectExplorerNode(result, connectionId, this._proxy)));
}
示例2:
isExpanded(): Thenable<boolean> {
return this._proxy.$isExpanded(this.connectionId, this.nodePath);
}
示例3: ExtHostObjectExplorerNode
getChildren(): Thenable<sqlops.objectexplorer.ObjectExplorerNode[]> {
return this._proxy.$getChildren(this.connectionId, this.nodePath).then(children => children.map(nodeInfo => new ExtHostObjectExplorerNode(nodeInfo, this.connectionId, this._proxy)));
}
示例4:
setSelected(selected: boolean, clearOtherSelections: boolean = undefined): Thenable<void> {
return this._proxy.$setSelected(this.connectionId, this.nodePath, selected, clearOtherSelections);
}