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:
Kim Santiago
2023-04-24 13:40:05 -07:00
committed by GitHub
parent c42418d89c
commit 8616c5948b
6 changed files with 407 additions and 123 deletions

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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: ''

View File

@@ -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
};