mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-04-01 01:20:31 -04:00
Revert "Update dataprotocol client" (#500)
* Revert "Fix #494 Connection error when connecting to an Azure SQL Server with no firewall rule (#497)" This reverts commitedd867b6fc. * Revert "Update dataprotocol client (#418)" This reverts commit7808496416.
This commit is contained in:
@@ -9,7 +9,6 @@ import { ConnectionManagementInfo } from 'sql/parts/connection/common/connection
|
||||
import { ICapabilitiesService } from 'sql/services/capabilities/capabilitiesService';
|
||||
import Event from 'vs/base/common/event';
|
||||
import { Action } from 'vs/base/common/actions';
|
||||
import { ConnectionOptionSpecialType } from 'sql/workbench/api/common/sqlExtHostTypes';
|
||||
|
||||
|
||||
export class CapabilitiesTestService implements ICapabilitiesService {
|
||||
@@ -34,7 +33,7 @@ export class CapabilitiesTestService implements ICapabilitiesService {
|
||||
defaultValue: undefined,
|
||||
isIdentity: true,
|
||||
isRequired: true,
|
||||
specialValueType: ConnectionOptionSpecialType.serverName,
|
||||
specialValueType: 0,
|
||||
valueType: 0
|
||||
},
|
||||
{
|
||||
@@ -46,7 +45,7 @@ export class CapabilitiesTestService implements ICapabilitiesService {
|
||||
defaultValue: undefined,
|
||||
isIdentity: true,
|
||||
isRequired: true,
|
||||
specialValueType: ConnectionOptionSpecialType.databaseName,
|
||||
specialValueType: 1,
|
||||
valueType: 0
|
||||
},
|
||||
{
|
||||
@@ -58,7 +57,7 @@ export class CapabilitiesTestService implements ICapabilitiesService {
|
||||
defaultValue: undefined,
|
||||
isIdentity: true,
|
||||
isRequired: true,
|
||||
specialValueType: ConnectionOptionSpecialType.userName,
|
||||
specialValueType: 3,
|
||||
valueType: 0
|
||||
},
|
||||
{
|
||||
@@ -70,7 +69,7 @@ export class CapabilitiesTestService implements ICapabilitiesService {
|
||||
defaultValue: undefined,
|
||||
isIdentity: true,
|
||||
isRequired: true,
|
||||
specialValueType: ConnectionOptionSpecialType.authType,
|
||||
specialValueType: 2,
|
||||
valueType: 0
|
||||
},
|
||||
{
|
||||
@@ -82,7 +81,7 @@ export class CapabilitiesTestService implements ICapabilitiesService {
|
||||
defaultValue: undefined,
|
||||
isIdentity: true,
|
||||
isRequired: true,
|
||||
specialValueType: ConnectionOptionSpecialType.password,
|
||||
specialValueType: 4,
|
||||
valueType: 0
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as data from 'data';
|
||||
import data = require('data');
|
||||
|
||||
export class ConnectionProviderStub implements data.ConnectionProvider {
|
||||
public readonly providerId = 'MSSQL';
|
||||
handle: number = 1;
|
||||
|
||||
connect(connectionUri: string, connectionInfo: data.ConnectionInfo): Thenable<boolean> {
|
||||
return undefined;
|
||||
|
||||
@@ -8,8 +8,6 @@ import data = require('data');
|
||||
|
||||
export class ObjectExplorerProviderTestService implements data.ObjectExplorerProvider {
|
||||
|
||||
public readonly providerId = 'MSSQL';
|
||||
|
||||
public createNewSession(connInfo: data.ConnectionInfo): Thenable<data.ObjectExplorerCloseSessionResponse> {
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user