/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/ProjectTelemetry/ProjectLoadTelemetryEvent.cs
31 строка
2 KB
Rikki Gibson
Adjust telemetry to identify file-based apps with no directives (#84111)
12 июн 2026, 03:12
Не верифицирован
12 июн 2026, 03:12
f1cbe90
Код
Авторство
О чём код?
// 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 Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.ProjectTelemetry; /// <summary> /// Data type for the project load telemetry event. /// Intentionally matches https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp.Abstractions/Models/Events/ProjectConfigurationMessage.cs /// except for SdkVersion, which is unused by the client in the O# version. /// </summary> internal sealed record ProjectLoadTelemetryEvent( // The project guid (if it came from a solution), or a hash representing the file path and contents. [property: JsonPropertyName("ProjectId")] string ProjectId, [property: JsonPropertyName("SessionId")] string SessionId, [property: JsonPropertyName("OutputKind")] int OutputKind, [property: JsonPropertyName("ProjectCapabilities")] IEnumerable<string> ProjectCapabilities, [property: JsonPropertyName("TargetFrameworks")] IEnumerable<string> TargetFrameworks, [property: JsonPropertyName("References")] IEnumerable<string> References, [property: JsonPropertyName("FileExtensions")] IEnumerable<string> FileExtensions, [property: JsonPropertyName("FileCounts")] IEnumerable<int> FileCounts, [property: JsonPropertyName("SdkStyleProject")] bool SdkStyleProject, [property: JsonPropertyName("HasSolutionFile")] bool HasSolutionFile, [property: JsonPropertyName("IsFileBasedProgram")] bool IsFileBasedProgram, [property: JsonPropertyName("HasFileBasedAppDirectives")] bool HasFileBasedAppDirectives, [property: JsonPropertyName("IsMiscellaneousFile")] bool IsMiscellaneousFile) { }