// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Text.Json.Serialization;
namespace Roslyn.LanguageServer.Protocol;
/// <summary>
/// Information about the client
/// </summary>
/// <remarks>Since LSP 3.16</remarks>
internal class ClientInfo
{
/// <summary>
/// The client's name as defined by the client
/// </summary>
[JsonPropertyName("name")]
[JsonRequired]
public string Name { get; set; }
/// <summary>
/// The client's version as defined by the client
/// </summary>
[JsonPropertyName("version")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Version { get; set; }
}
|