Adding SpecialValueAppName in connection options (#366)

Application Name is now treated as a special value, so that applications consuming SQL Tools Service can set the application name correctly.
This commit is contained in:
Matt Irvine
2017-06-01 11:54:49 -07:00
committed by GitHub
parent 79350e10f9
commit 5c7909d741
2 changed files with 3 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ namespace Microsoft.SqlTools.Hosting.Contracts
public static readonly string SpecialValueAuthType = "authType";
public static readonly string SpecialValueUserName = "userName";
public static readonly string SpecialValuePasswordName = "password";
public static readonly string SpecialValueAppName = "appName";
/// <summary>
/// Determines if the parameter is one of the 'special' known values.

View File

@@ -199,7 +199,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
DisplayName = "Application Name",
Description = "The name of the application",
ValueType = ConnectionOption.ValueTypeString,
GroupName = "Context"
GroupName = "Context",
SpecialValueType = ConnectionOption.SpecialValueAppName
},
new ConnectionOption
{