Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Feb 9, 2022
1 parent ff197c3 commit 1dc7d79
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ internal class CSharpGoToDefinitionService : AbstractGoToDefinitionService
[SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")]
public CSharpGoToDefinitionService(
IThreadingContext threadingContext,
IStreamingFindUsagesPresenter streamingPresenter,
IGlobalOptionService globalOptions)
: base(threadingContext, streamingPresenter, globalOptions)
IStreamingFindUsagesPresenter streamingPresenter)
: base(threadingContext, streamingPresenter)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class C
Dim cursorBuffer = cursorDocument.GetTextBuffer()
Dim document = workspace.CurrentSolution.GetDocument(cursorDocument.Id)

Dim goToDefService = New CSharpGoToDefinitionService(threadingContext, presenter, workspace.GlobalOptions)
Dim goToDefService = New CSharpGoToDefinitionService(threadingContext, presenter)

Dim waitContext = New TestUIThreadOperationContext(updatesBeforeCancel)
GoToDefinitionCommandHandler.TryExecuteCommand(document, cursorPosition, goToDefService, New CommandExecutionContext(waitContext))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.GoToDefinition
Dim presenter = New MockStreamingFindUsagesPresenter(workspace.GlobalOptions, Sub() presenterCalled = True)

Dim goToDefService = If(document.Project.Language = LanguageNames.CSharp,
DirectCast(New CSharpGoToDefinitionService(threadingContext, presenter, workspace.GlobalOptions), IGoToDefinitionService),
New VisualBasicGoToDefinitionService(threadingContext, presenter, workspace.GlobalOptions))
DirectCast(New CSharpGoToDefinitionService(threadingContext, presenter), IGoToDefinitionService),
New VisualBasicGoToDefinitionService(threadingContext, presenter))

Dim actualResult = goToDefService.TryGoToDefinition(document, cursorPosition, CancellationToken.None)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.GoToDefinition
<ImportingConstructor>
<SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification:="Used in test code: https://github.com/dotnet/roslyn/issues/42814")>
Public Sub New(threadingContext As IThreadingContext,
streamingPresenter As IStreamingFindUsagesPresenter,
globalOptions As IGlobalOptionService)
MyBase.New(threadingContext, streamingPresenter, globalOptions)
streamingPresenter As IStreamingFindUsagesPresenter)
MyBase.New(threadingContext, streamingPresenter)
End Sub
End Class
End Namespace

0 comments on commit 1dc7d79

Please sign in to comment.