Skip to content

Commit 2aad1b0

Browse files
author
dotnet-automerge-bot
authored
Merge pull request #36363 from dotnet/merges/master-to-features/param-nullchecking
Merge master to features/param-nullchecking
2 parents d7c97f7 + 3fb1c63 commit 2aad1b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/VisualStudio/Core/Def/Implementation/TaskList/ProjectExternalErrorReporter.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
using Microsoft.CodeAnalysis;
1010
using Microsoft.CodeAnalysis.Diagnostics;
1111
using Microsoft.CodeAnalysis.ErrorReporting;
12+
using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem;
13+
using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.Extensions;
1214
using Microsoft.VisualStudio.LanguageServices.Implementation.Venus;
1315
using Microsoft.VisualStudio.Shell;
1416
using Microsoft.VisualStudio.Shell.Interop;
@@ -28,6 +30,12 @@ internal class ProjectExternalErrorReporter : IVsReportExternalErrors, IVsLangua
2830
private readonly VisualStudioWorkspace _workspace;
2931
private readonly ExternalErrorDiagnosticUpdateSource _diagnosticProvider;
3032

33+
[Obsolete("This is a compatibility shim for F#; please do not use it.")]
34+
public ProjectExternalErrorReporter(ProjectId projectId, string errorCodePrefix, IServiceProvider serviceProvider)
35+
: this(projectId, errorCodePrefix, serviceProvider.GetMefService<VisualStudioWorkspace>(), serviceProvider.GetMefService<ExternalErrorDiagnosticUpdateSource>())
36+
{
37+
}
38+
3139
public ProjectExternalErrorReporter(ProjectId projectId, string errorCodePrefix, VisualStudioWorkspace workspace, ExternalErrorDiagnosticUpdateSource diagnosticProvider)
3240
{
3341
Debug.Assert(projectId != null);

0 commit comments

Comments
 (0)