19 references to RoslynPackage
Microsoft.VisualStudio.LanguageServices (19)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
181return RoslynPackage.GetOrLoadAsync(_threadingContext, (IAsyncServiceProvider)_serviceProvider, _threadingContext.DisposalToken).AsTask(); 256return RoslynPackage.GetOrLoadAsync(_threadingContext, (IAsyncServiceProvider)_serviceProvider, _threadingContext.DisposalToken).AsTask();
Options\PackageSettingsPersister.cs (3)
19private RoslynPackage? _lazyRoslynPackage; 39_ = await RoslynPackage.GetOrLoadAsync(threadingContext, serviceProvider, cancellationToken).ConfigureAwait(true); 42public void Initialize(RoslynPackage package)
Options\VisualStudioSettingsOptionPersister.cs (1)
38/// We make sure this code is from the UI by asking for all <see cref="IOptionPersister"/> in <see cref="RoslynPackage.InitializeAsync"/>
RoslynPackage.cs (5)
62private static RoslynPackage? _lazyInstance; 95internal static async ValueTask<RoslynPackage?> GetOrLoadAsync(IThreadingContext threadingContext, IAsyncServiceProvider serviceProvider, CancellationToken cancellationToken) 103await shell.LoadPackageAsync(typeof(RoslynPackage).GUID); 105if (ErrorHandler.Succeeded(((IVsShell)shell).IsPackageLoaded(typeof(RoslynPackage).GUID, out var package))) 107_lazyInstance = (RoslynPackage)package;
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (3)
21private readonly RoslynPackage _package; 27private StackTraceExplorerCommandHandler(RoslynPackage package) 180internal static void Initialize(OleMenuCommandService menuCommandService, RoslynPackage package)
StackTraceExplorer\StackTraceExplorerToolWindow.cs (1)
116public void InitializeIfNeeded(RoslynPackage roslynPackage)
ValueTracking\ValueTrackingCommandHandler.cs (4)
170var roslynPackage = await RoslynPackage.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false); 182var roslynPackage = await RoslynPackage.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false);