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.
31 lines
874 B
31 lines
874 B
4 years ago
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|