/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Protocol/Handler/Extensions/ActivateExtensionResponse.cs
20 строк
1 KB
Matteo Prosperi
Rename LSP messages for VisualStudio.Extensibility integration (#78598)
16 май 2025, 01:12
Не верифицирован
16 май 2025, 01:12
6ca368c
Код
Авторство
О чём код?
// 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; using System.Collections.Immutable; using System.Text.Json.Serialization; namespace Microsoft.CodeAnalysis.LanguageServer.Handler.Extensions; /// <summary> /// Response for the server/_vs_activateExtension request. /// </summary> /// <param name="WorkspaceMessageHandlers">Names of the registered non-document-specific extension message handlers.</param> /// <param name="DocumentMessageHandlers">Names of the registered document-specific extension message handlers.</param> /// <param name="ExtensionException">Details of any exceptions that occurred during extension registration.</param> internal sealed record class ActivateExtensionResponse( [property: JsonPropertyName("workspaceMessageHandlers")] ImmutableArray<string> WorkspaceMessageHandlers, [property: JsonPropertyName("documentMessageHandlers")] ImmutableArray<string> DocumentMessageHandlers, [property: JsonPropertyName("extensionException"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] Exception? ExtensionException);