Update product references from 'sqlops' to 'azdata' (#4259)

* Update extensions to use azdata

* Switch core code to use azdata
This commit is contained in:
Karl Burtram
2019-03-01 13:59:37 -08:00
committed by GitHub
parent 220685a522
commit 84890eb1b4
371 changed files with 3208 additions and 3184 deletions

View File

@@ -7,7 +7,7 @@
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
import * as sqlops from 'sqlops';
import * as azdata from 'azdata';
import { Deferred } from 'sql/base/common/promise';
export const SERVICE_ID = 'credentialsService';
@@ -15,7 +15,7 @@ export const SERVICE_ID = 'credentialsService';
export interface CredentialManagementEvents {
onSaveCredential(credentialId: string, password: string): Thenable<boolean>;
onReadCredential(credentialId: string): Thenable<sqlops.Credential>;
onReadCredential(credentialId: string): Thenable<azdata.Credential>;
onDeleteCredential(credentialId: string): Thenable<boolean>;
}
@@ -27,7 +27,7 @@ export interface ICredentialsService {
saveCredential(credentialId: string, password: string): Thenable<boolean>;
readCredential(credentialId: string): Thenable<sqlops.Credential>;
readCredential(credentialId: string): Thenable<azdata.Credential>;
deleteCredential(credentialId: string): Thenable<boolean>;
@@ -66,7 +66,7 @@ export class CredentialsService implements ICredentialsService {
return this._onServerEventsReady.promise.then(() => this._serverEvents[this._lastHandle].onSaveCredential(credentialId, password));
}
public readCredential(credentialId: string): Thenable<sqlops.Credential> {
public readCredential(credentialId: string): Thenable<azdata.Credential> {
return this._onServerEventsReady.promise.then(() => this._serverEvents[this._lastHandle].onReadCredential(credentialId));
}