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.
45 lines
1.1 KiB
45 lines
1.1 KiB
4 years ago
|
using Newtonsoft.Json;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Monaco.Editor
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.imarkerdata.html
|
||
|
/// </summary>
|
||
|
public sealed class MarkerData : IMarkerData
|
||
|
{
|
||
|
[JsonProperty("code")]
|
||
|
public string Code { get; set; }
|
||
|
|
||
|
[JsonProperty("message")]
|
||
|
public string Message { get; set; }
|
||
|
|
||
|
[JsonProperty("severity")]
|
||
|
public Severity Severity { get; set; }
|
||
|
|
||
|
[JsonProperty("source")]
|
||
|
public string Source { get; set; }
|
||
|
|
||
|
[JsonProperty("startLineNumber")]
|
||
|
public uint StartLineNumber { get; set; }
|
||
|
|
||
|
[JsonProperty("startColumn")]
|
||
|
public uint StartColumn { get; set; }
|
||
|
|
||
|
[JsonProperty("endLineNumber")]
|
||
|
public uint EndLineNumber { get; set; }
|
||
|
|
||
|
[JsonProperty("endColumn")]
|
||
|
public uint EndColumn { get; set; }
|
||
|
|
||
|
public string ToJson()
|
||
|
{
|
||
|
return JsonConvert.SerializeObject(this);
|
||
|
}
|
||
|
}
|
||
|
}
|