mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-05 01:25:38 -05:00
Add connection event listeners (#6540)
This commit is contained in:
18
src/sql/azdata.proposed.d.ts
vendored
18
src/sql/azdata.proposed.d.ts
vendored
@@ -8,4 +8,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user