/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Def/IAnalyzerNodeSetup.cs
19 строк
774 B
Jason Malinowski
Avoid switching to the UI thread every time we are subscribing menus
12 мар 2026, 21:06
12 мар 2026, 21:06
64b0b7c
Код
Авторство
О чём код?
// 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.Threading; using System.Threading.Tasks; using Microsoft.VisualStudio.LanguageServices.Implementation.Utilities; using Microsoft.VisualStudio.Shell; namespace Microsoft.VisualStudio.LanguageServices; /// <summary> /// An interface to be implemented in the SolutionExplorerShim project to register the stuff needed there. /// </summary> internal interface IAnalyzerNodeSetup { Task InitializeAsync(IAsyncServiceProvider serviceProvider, ThreadSafeMenuCommandService menuCommandService, CancellationToken cancellationToken); void Unregister(); }