allow extension to provide custom icons to data explorer tree (#16868)

* expose icon path to extension for OE node

* remove node type

* pr comments
This commit is contained in:
Alan Ren
2021-08-24 17:52:19 -07:00
committed by GitHub
parent 16975da000
commit 712a1b3a65
10 changed files with 73 additions and 26 deletions

View File

@@ -5,6 +5,7 @@
import { nb, IConnectionProfile } from 'azdata';
import * as vsExtTypes from 'vs/workbench/api/common/extHostTypes';
import { URI } from 'vs/base/common/uri';
// SQL added extension host types
export enum ServiceOptionType {
@@ -447,6 +448,9 @@ export class TreeItem extends vsExtTypes.TreeItem {
providerHandle?: string;
}
export type ThemedIconPath = { light: string | URI; dark: string | URI };
export type IconPath = string | URI | ThemedIconPath;
export class SqlThemeIcon {
static readonly Folder = new SqlThemeIcon('Folder');