use path to identify edit target (#1292)

* use path to identify edit target

* async action

* revert RequestContext change

* comments

* address comments

* fix test
This commit is contained in:
Alan Ren
2021-11-10 17:39:48 -08:00
committed by GitHub
parent c738e3bdf7
commit a3c69f3dd2
14 changed files with 528 additions and 173 deletions

View File

@@ -3,6 +3,10 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts
{
/// <summary>
@@ -23,17 +27,35 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts
/// <summary>
/// The component type of the property
/// </summary>
public string ComponentType { get; set; }
public DesignerComponentType ComponentType { get; set; }
/// <summary>
/// The name of the group the property will be placed in whe displayed in
/// </summary>
public string Group { get; set; }
/// <summary>
/// The name of the group the property will be placed in whe displayed in
/// </summary>
public bool ShowInPropertiesView { get; set; }
/// <summary>
/// The properties of component
/// </summary>
public ComponentPropertiesBase ComponentProperties { get; set; }
}
[JsonConverter(typeof(StringEnumConverter))]
public enum DesignerComponentType
{
[EnumMember(Value = "checkbox")]
Checkbox,
[EnumMember(Value = "dropdown")]
Dropdown,
[EnumMember(Value = "input")]
Input,
[EnumMember(Value = "table")]
Table
}
}