/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ // This is the place for API experiments and proposal. import * as vscode from 'vscode'; declare module 'azdata' { /** * Namespace for connection management */ export namespace connection { export type ConnectionEventType = | 'onConnect' | 'onDisconnect' | 'onConnectionChanged'; export interface ConnectionEventListener { onConnectionEvent(type: ConnectionEventType, ownerUri: string, args: IConnectionProfile): void; } /** * Register a connection event listener */ export function registerConnectionEventListener(listener: connection.ConnectionEventListener): void; } }