File: Protocol\Internal\VSInternalMapCodeParams.cs
Web Access
Project: src\src\LanguageServer\Protocol\Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj (Microsoft.CodeAnalysis.LanguageServer.Protocol)
// 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.
 
namespace Roslyn.LanguageServer.Protocol;
 
using System;
using System.Text.Json.Serialization;
 
/// <summary>
/// LSP Params for textDocument/mapCode calls.
/// </summary>
internal sealed class VSInternalMapCodeParams
{
    /// <summary>
    /// Internal correlation GUID, used to correlate map code messages from Copilot
    /// with LSP Client actions. Used for telemetry.
    /// </summary>
    [JsonPropertyName("_vs_map_code_correlation_id")]
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
    public Guid? MapCodeCorrelationId
    {
        get;
        set;
    }
 
    /// <summary>
    /// Set of code blocks, associated with documents and regions, to map.
    /// </summary>
    [JsonPropertyName("_vs_mappings")]
    public VSInternalMapCodeMapping[] Mappings
    {
        get;
        set;
    }
 
    /// <summary>
    /// Changes that should be applied to the workspace by the mapper before performing
    /// the mapping operation.
    /// </summary>
    [JsonPropertyName("_vs_updates")]
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
    public WorkspaceEdit? Updates
    {
        get;
        set;
    }
}