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.
30 lines
874 B
30 lines
874 B
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 |
|
{ |
|
/// <summary> |
|
/// https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.hover.html |
|
/// </summary> |
|
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; |
|
} |
|
} |
|
}
|
|
|