mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
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:
@@ -29,6 +29,7 @@ namespace Microsoft.SqlTools.Hosting.Contracts
|
|||||||
public static readonly string SpecialValueAuthType = "authType";
|
public static readonly string SpecialValueAuthType = "authType";
|
||||||
public static readonly string SpecialValueUserName = "userName";
|
public static readonly string SpecialValueUserName = "userName";
|
||||||
public static readonly string SpecialValuePasswordName = "password";
|
public static readonly string SpecialValuePasswordName = "password";
|
||||||
|
public static readonly string SpecialValueAppName = "appName";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines if the parameter is one of the 'special' known values.
|
/// Determines if the parameter is one of the 'special' known values.
|
||||||
|
|||||||
@@ -199,7 +199,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
|||||||
DisplayName = "Application Name",
|
DisplayName = "Application Name",
|
||||||
Description = "The name of the application",
|
Description = "The name of the application",
|
||||||
ValueType = ConnectionOption.ValueTypeString,
|
ValueType = ConnectionOption.ValueTypeString,
|
||||||
GroupName = "Context"
|
GroupName = "Context",
|
||||||
|
SpecialValueType = ConnectionOption.SpecialValueAppName
|
||||||
},
|
},
|
||||||
new ConnectionOption
|
new ConnectionOption
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user