mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-27 09:35:38 -05:00
set issupportedVersion flag (#1255)
This commit is contained in:
@@ -480,6 +480,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
||||
connectionInfo.IsSqlDb = serverInfo.EngineEditionId == (int)DatabaseEngineEdition.SqlDatabase;
|
||||
connectionInfo.IsSqlDW = (serverInfo.EngineEditionId == (int)DatabaseEngineEdition.SqlDataWarehouse);
|
||||
connectionInfo.EngineEdition = (DatabaseEngineEdition)serverInfo.EngineEditionId;
|
||||
// Azure Data Studio supports SQL Server 2014 and later releases.
|
||||
response.IsSupportedVersion = serverInfo.IsCloud || serverInfo.ServerMajorVersion >= 12;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@@ -52,6 +52,16 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts
|
||||
/// The type of connection that this notification is for
|
||||
/// </summary>
|
||||
public string Type { get; set; } = ConnectionType.Default;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a boolean value indicates whether the current server version is supported by the service.
|
||||
/// </summary>
|
||||
public bool IsSupportedVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the additional warning message about the unsupported server version.
|
||||
/// </summary>
|
||||
public string UnsupportedVersionMessage { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user