mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-21 17:24:03 -05:00
Fix numerous Azure property issues (#511)
* Avoid crashing if azure edition is System. * Add new Azure-specific options to the prototype and return through the service calls * Send azure properties over database info request * IsCloud should include Azure SQL DW - Fixed references to this feature flag - Updated edition handling to include ManagedInstance and removed AzureV1 check since it's never used and it's been retired.
This commit is contained in:
committed by
Karl Burtram
parent
49f0221dc8
commit
d222af7824
@@ -463,8 +463,9 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
||||
OsVersion = serverInfo.OsVersion,
|
||||
MachineName = serverInfo.MachineName
|
||||
};
|
||||
connectionInfo.IsAzure = serverInfo.IsCloud;
|
||||
connectionInfo.IsCloud = serverInfo.IsCloud;
|
||||
connectionInfo.MajorVersion = serverInfo.ServerMajorVersion;
|
||||
connectionInfo.IsSqlDb = serverInfo.EngineEditionId == (int)DatabaseEngineEdition.SqlDatabase;
|
||||
connectionInfo.IsSqlDW = (serverInfo.EngineEditionId == (int)DatabaseEngineEdition.SqlDataWarehouse);
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -1293,7 +1294,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
||||
{
|
||||
Properties = new Dictionary<string, string>
|
||||
{
|
||||
{ TelemetryPropertyNames.IsAzure, connectionInfo.IsAzure.ToOneOrZeroString() }
|
||||
{ TelemetryPropertyNames.IsAzure, connectionInfo.IsCloud.ToOneOrZeroString() }
|
||||
},
|
||||
EventName = TelemetryEventNames.IntellisenseQuantile,
|
||||
Measures = connectionInfo.IntellisenseMetrics.Quantile
|
||||
|
||||
Reference in New Issue
Block a user