mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 17:23:40 -05:00
Data Explorer Disconnect and Error Handling (#4243)
* adding context * apply extension changes * shimming disconnect * add data explorer context menu and add disconnect to it * clean up shim code; better handle errors * remove tpromise * simplify code
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ITreeViewDataProvider, ITreeItem as vsITreeItem } from 'vs/workbench/common/views';
|
||||
import { ITreeViewDataProvider, ITreeItem as vsITreeItem, IViewDescriptor, ITreeView as vsITreeView } from 'vs/workbench/common/views';
|
||||
import { IConnectionProfile } from 'azdata';
|
||||
|
||||
export interface ITreeComponentItem extends vsITreeItem {
|
||||
@@ -22,3 +22,21 @@ export interface ITreeItem extends vsITreeItem {
|
||||
childProvider?: string;
|
||||
payload?: IConnectionProfile; // its possible we will want this to be more generic
|
||||
}
|
||||
|
||||
export interface ITreeView extends vsITreeView {
|
||||
|
||||
collapse(itemOrItems: ITreeItem | ITreeItem[]): Thenable<void>;
|
||||
|
||||
}
|
||||
|
||||
export type TreeViewItemHandleArg = {
|
||||
$treeViewId: string,
|
||||
$treeItemHandle: string,
|
||||
$treeItem?: ITreeItem
|
||||
};
|
||||
|
||||
export interface ICustomViewDescriptor extends IViewDescriptor {
|
||||
|
||||
readonly treeView: ITreeView;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user