mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
Add azdata.d.ts for new extensibility APIs (#4247)
* Add azdata.d.ts for new extensibility APIs * Update azdata typing files for connection API proposal * Add implementation for azdata module * Fix build break in agent
This commit is contained in:
38
src/sql/azdata.d.ts
vendored
Normal file
38
src/sql/azdata.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'azdata' {
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
// methods
|
||||
export namespace connection {
|
||||
|
||||
/**
|
||||
* Connection profile primary class
|
||||
*/
|
||||
export class ConnectionProfile {
|
||||
providerId: string;
|
||||
connectionId: string;
|
||||
connectionName: string;
|
||||
serverName: string;
|
||||
databaseName: string;
|
||||
userName: string;
|
||||
password: string;
|
||||
authenticationType: string;
|
||||
savePassword: boolean;
|
||||
groupFullName: string;
|
||||
groupId: string;
|
||||
saveProfile: boolean;
|
||||
azureTenantId?: string;
|
||||
|
||||
static createFrom(options: any[]): ConnectionProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current connection based on the active editor or Object Explorer selection
|
||||
*/
|
||||
export function getCurrentConnection(): Thenable<ConnectionProfile>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user