mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
* move handling generated files to the serilization classes * remove unneeded methods * add more folders to strictire compile, add more strict compile options * update ci * wip * add more layering and fix issues * add more strictness * remove unnecessary assertion * add missing checks * fix indentation * wip * remove jsdoc * fix layering * fix compile * fix compile errors * wip * wip * finish layering * fix css * more layering * remove no longer good parts * fix issues with startup * another try * fix startup
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { ITreeViewDataProvider, ITreeItem as vsITreeItem, IViewDescriptor, ITreeView as vsITreeView } from 'vs/workbench/common/views';
|
|
import { IConnectionProfile } from 'azdata';
|
|
|
|
export enum NodeType {
|
|
Server = 'Server',
|
|
Database = 'Database'
|
|
}
|
|
|
|
export interface ITreeComponentItem extends vsITreeItem {
|
|
checked?: boolean;
|
|
enabled?: boolean;
|
|
onCheckedChanged?: (checked: boolean) => void;
|
|
children?: ITreeComponentItem[];
|
|
}
|
|
|
|
export interface IModelViewTreeViewDataProvider extends ITreeViewDataProvider {
|
|
refresh(itemsToRefreshByHandle: { [treeItemHandle: string]: ITreeComponentItem }): void;
|
|
}
|
|
|
|
export interface ITreeItem extends vsITreeItem {
|
|
providerHandle?: string;
|
|
childProvider?: string;
|
|
payload?: IConnectionProfile; // its possible we will want this to be more generic
|
|
sqlIcon?: string;
|
|
type?: NodeType;
|
|
}
|
|
|
|
export interface ITreeView extends vsITreeView {
|
|
|
|
collapse(itemOrItems: ITreeItem): boolean;
|
|
|
|
}
|
|
|
|
export type TreeViewItemHandleArg = {
|
|
$treeViewId: string,
|
|
$treeItemHandle: string,
|
|
$treeItem?: ITreeItem,
|
|
$treeContainerId?: string
|
|
};
|
|
|
|
export interface ICustomViewDescriptor extends IViewDescriptor {
|
|
|
|
readonly treeView: ITreeView;
|
|
|
|
}
|