mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Update vscode-mssql.d.ts to match what's in the vscode-mssql repo (#22830)
* update vscode-mssql.d.ts * update extensions that need updates because of the vscode-mssql.d.ts changes * remove skip * fix sql projects tests failing because vscode-mssql couldn't be found
This commit is contained in:
@@ -742,7 +742,7 @@ export async function fileContainsCreateTableStatement(fullPath: string, project
|
||||
* @param serverInfo server information
|
||||
* @returns target platform for the database project
|
||||
*/
|
||||
export async function getTargetPlatformFromServerVersion(serverInfo: azdataType.ServerInfo | vscodeMssql.ServerInfo): Promise<SqlTargetPlatform | undefined> {
|
||||
export async function getTargetPlatformFromServerVersion(serverInfo: azdataType.ServerInfo | vscodeMssql.IServerInfo): Promise<SqlTargetPlatform | undefined> {
|
||||
const isCloud = serverInfo.isCloud;
|
||||
|
||||
let targetPlatform;
|
||||
|
||||
@@ -87,7 +87,8 @@ export class ConnectionService {
|
||||
workstationId: undefined,
|
||||
profileName: profile.profileName,
|
||||
expiresOn: undefined,
|
||||
tenantId: profile.tenantId
|
||||
tenantId: profile.tenantId,
|
||||
commandTimeout: undefined
|
||||
};
|
||||
let connectionUrl = '';
|
||||
try {
|
||||
|
||||
@@ -24,6 +24,33 @@ export function createContext(): TestContext {
|
||||
key: undefined!,
|
||||
displayInfo: undefined!,
|
||||
properties: {
|
||||
azureAuthType: 0,
|
||||
providerSettings: {
|
||||
scopes: [],
|
||||
displayName: '',
|
||||
id: '',
|
||||
clientId: '',
|
||||
loginEndpoint: '',
|
||||
portalEndpoint: '',
|
||||
redirectUri: '',
|
||||
resources: {
|
||||
windowsManagementResource: {
|
||||
id: '',
|
||||
resource: '',
|
||||
endpoint: ''
|
||||
},
|
||||
azureManagementResource: {
|
||||
id: '',
|
||||
resource: '',
|
||||
endpoint: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
isMsAccount: false,
|
||||
owningTenant: {
|
||||
id: '',
|
||||
displayName: ''
|
||||
},
|
||||
tenants: [{
|
||||
id: '',
|
||||
displayName: ''
|
||||
|
||||
@@ -51,7 +51,7 @@ export class MockVscodeMssqlIExtension implements vscodeMssql.IExtension {
|
||||
createConnectionDetails(_: vscodeMssql.IConnectionInfo): vscodeMssql.ConnectionDetails {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getServerInfo(_: vscodeMssql.IConnectionInfo): vscodeMssql.ServerInfo {
|
||||
getServerInfo(_: vscodeMssql.IConnectionInfo): vscodeMssql.IServerInfo {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
}
|
||||
@@ -97,5 +97,6 @@ export const mockConnectionInfo: vscodeMssql.IConnectionInfo = {
|
||||
multipleActiveResultSets: false,
|
||||
packetSize: 8192,
|
||||
typeSystemVersion: 'Latest',
|
||||
connectionString: ''
|
||||
connectionString: '',
|
||||
commandTimeout: undefined
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user