public Hover(string contents, Range range) { Contents = contents; Range = range; }
public Diagnostic(DiagnosticSeverity severity, Range range, string source, string message) : this(severity, range, source, null, message) { }
/// <summary> /// Gets a part of the content by the specified line/column-based range. /// </summary> public virtual string GetRange(Range range) { var start = OffsetAt(range.Start); return(GetRange(start, OffsetAt(range.End) - start)); }