using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using System.Text; using System.Threading.Tasks; namespace Monaco.Languages { /// /// https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.hover.html /// public sealed class Hover { [JsonProperty("contents")] public IMarkdownString[] Contents { get; set; } [JsonProperty("range")] public IRange Range { get; set; } public Hover([ReadOnlyArray] string[] contents, IRange range) : this(contents, range, false) { } public Hover([ReadOnlyArray] string[] contents, IRange range, bool isTrusted) { Contents = contents.ToMarkdownString(isTrusted); Range = range; } } }