19 references to RoslynPackage
Microsoft.VisualStudio.LanguageServices (19)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
181
return
RoslynPackage
.GetOrLoadAsync(_threadingContext, (IAsyncServiceProvider)_serviceProvider, _threadingContext.DisposalToken).AsTask();
256
return
RoslynPackage
.GetOrLoadAsync(_threadingContext, (IAsyncServiceProvider)_serviceProvider, _threadingContext.DisposalToken).AsTask();
Options\PackageSettingsPersister.cs (3)
19
private
RoslynPackage
? _lazyRoslynPackage;
39
_ = await
RoslynPackage
.GetOrLoadAsync(threadingContext, serviceProvider, cancellationToken).ConfigureAwait(true);
42
public 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)
62
private static
RoslynPackage
? _lazyInstance;
95
internal static async ValueTask<
RoslynPackage
?> GetOrLoadAsync(IThreadingContext threadingContext, IAsyncServiceProvider serviceProvider, CancellationToken cancellationToken)
103
await shell.LoadPackageAsync(typeof(
RoslynPackage
).GUID);
105
if (ErrorHandler.Succeeded(((IVsShell)shell).IsPackageLoaded(typeof(
RoslynPackage
).GUID, out var package)))
107
_lazyInstance = (
RoslynPackage
)package;
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (3)
21
private readonly
RoslynPackage
_package;
27
private StackTraceExplorerCommandHandler(
RoslynPackage
package)
180
internal static void Initialize(OleMenuCommandService menuCommandService,
RoslynPackage
package)
StackTraceExplorer\StackTraceExplorerToolWindow.cs (1)
116
public void InitializeIfNeeded(
RoslynPackage
roslynPackage)
ValueTracking\ValueTrackingCommandHandler.cs (4)
170
var
roslynPackage = await
RoslynPackage
.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false);
182
var
roslynPackage = await
RoslynPackage
.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false);