/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/ProjectToLoad.cs
28 строк
1 KB
Ankita Khera
Report percentage progress during LSP project loading (#83785)
27 май 2026, 19:25
Не верифицирован
27 май 2026, 19:25
43c2f74
Код
Авторство
О чём код?
// 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.Diagnostics.CodeAnalysis; namespace Microsoft.CodeAnalysis.LanguageServer.HostWorkspace; /// <summary> /// The project path (and the guid if it came from a solution) of the project to load. /// </summary> internal sealed record ProjectToLoad(string Path, string? ProjectGuid, bool ReportTelemetry, LanguageServerProjectLoader.WorkDoneProgressTracker? ProgressTracker = null) { public static IEqualityComparer<ProjectToLoad> Comparer = new ProjectToLoadComparer(); private sealed class ProjectToLoadComparer : IEqualityComparer<ProjectToLoad> { public bool Equals(ProjectToLoad? x, ProjectToLoad? y) { return StringComparer.Ordinal.Equals(x?.Path, y?.Path); } public int GetHashCode([DisallowNull] ProjectToLoad obj) { return StringComparer.Ordinal.GetHashCode(obj.Path); } } }