mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
30 lines
964 B
TypeScript
30 lines
964 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* 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;
|
|
}
|
|
}
|