mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 09:35:41 -05:00
rename folder (#16848)
This commit is contained in:
18
samples/sqlservices/src/featureProviders/iconProvider.ts
Normal file
18
samples/sqlservices/src/featureProviders/iconProvider.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user