We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ErikEJ/SqlServer.Rules'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
SqlAnalyzerDiagnosticInfo.cs•1.4 KiB
using System;
using Microsoft.VisualStudio.Extensibility.Languages;
using Range = Microsoft.VisualStudio.RpcContracts.Utilities.Range;
namespace SqlAnalyzer;
/// <summary>
/// Class that contains diagnostic information found by the SQL analyzer.
/// Holds information to be converted to a <see cref="DocumentDiagnostic"/>.
/// </summary>
public class SqlAnalyzerDiagnosticInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="SqlAnalyzerDiagnosticInfo"/> class.
/// </summary>
/// <param name="range">Range where the diagnostic exists.</param>
/// <param name="message">Message to be presented with the diagnostic.</param>
/// <param name="errorCode">Unique error code of this type of diagnostic.</param>
/// <param name="helpLink">Help URL</param>
public SqlAnalyzerDiagnosticInfo(Range range, string message, string errorCode, Uri? helpLink)
{
this.Range = range;
this.Message = message;
this.ErrorCode = errorCode;
this.HelpLink = helpLink;
}
public Uri? HelpLink { get; set; }
/// <summary>
/// Gets the range of the diagnostic.
/// </summary>
public Range Range { get; }
/// <summary>
/// Gets the error message of the diagnostic.
/// </summary>
public string Message { get; }
/// <summary>
/// Gets the error code of the diagnostic.
/// </summary>
public string ErrorCode { get; }
}