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.
50 lines
1.2 KiB
50 lines
1.2 KiB
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.imarker.html |
|
/// </summary> |
|
public sealed class Marker : IMarker |
|
{ |
|
[JsonProperty("owner")] |
|
public string Owner { get; set; } |
|
|
|
[JsonProperty("resource")] |
|
public IUri Resource { get; set; } |
|
|
|
[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); |
|
} |
|
} |
|
}
|
|
|