mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 17:22:20 -05:00
19 lines
930 B
TypeScript
19 lines
930 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import * as azdata from 'azdata';
|
|
import { ProviderId } from './connectionProvider';
|
|
|
|
const IconId = 'myprovidericon';
|
|
/**
|
|
* This class implements the IconProvider interface that allows users to contribute icons for the root tree node instead of using the generic server icon.
|
|
*/
|
|
export class IconProvider implements azdata.IconProvider {
|
|
public readonly providerId: string = ProviderId;
|
|
public handle?: number;
|
|
getConnectionIconId(connection: azdata.IConnectionProfile, serverInfo: azdata.ServerInfo): Thenable<string | undefined> {
|
|
return Promise.resolve(IconId);
|
|
}
|
|
}
|