An editor for Microsoft Adaptive Cards that supports the new templating language and DOESN'T use JavaScript, because JavaScript isn't a real programming language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 lines
1.8 KiB

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Monaco.Languages
{
/// <summary>
/// https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.completionitem.html
/// </summary>
public sealed class CompletionItem
{
////public ISingleEditOperation[] AdditionalTextEdits { get; set; }
[JsonProperty("command", NullValueHandling = NullValueHandling.Ignore)]
public Command Command { get; set; }
[JsonProperty("commitCharacters", NullValueHandling = NullValueHandling.Ignore)]
public string[] CommitCharacters { get; set; }
[JsonProperty("detail", NullValueHandling = NullValueHandling.Ignore)]
public string Detail { get; set; }
[JsonProperty("documentation", NullValueHandling = NullValueHandling.Ignore)]
public IMarkdownString Documentation { get; set; }
[JsonProperty("filterText", NullValueHandling = NullValueHandling.Ignore)]
public string FilterText { get; set; }
[JsonProperty("insertText", NullValueHandling = NullValueHandling.Ignore)]
public SnippetString InsertText { get; set; }
[JsonProperty("kind")]
public CompletionItemKind Kind { get; set; }
[JsonProperty("label")]
public string Label { get; set; }
[JsonProperty("range", NullValueHandling = NullValueHandling.Ignore)]
public IRange Range { get; set; }
[JsonProperty("sortText", NullValueHandling = NullValueHandling.Ignore)]
public string SortText { get; set; }
public CompletionItem(string label, CompletionItemKind kind)
{
Label = label;
Kind = kind;
}
}
}