Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost;

public class RemoveDebugInfoServiceTest(ITestOutputHelper testOutputHelper) : CohostEndpointTestBase(testOutputHelper)
public class RemoteDebugInfoServiceTest(ITestOutputHelper testOutputHelper) : CohostEndpointTestBase(testOutputHelper)
{
[Fact]
public async Task ResolveProximityExpressionsAsync_Html()
Expand Down Expand Up @@ -182,11 +182,11 @@ private async Task VerifyProximityExpressionsAsync(TestCode input, string[] extr
var span = inputText.GetLinePosition(input.Position);

var result = await RemoteServiceInvoker
.TryInvokeAsync<IRemoteDebugInfoService, string[]?>(
document.Project.Solution,
(service, solutionInfo, cancellationToken) =>
service.ResolveProximityExpressionsAsync(solutionInfo, document.Id, span, cancellationToken),
DisposalToken);
.TryInvokeAsync<IRemoteDebugInfoService, string[]?>(
document.Project.Solution,
(service, solutionInfo, cancellationToken) =>
service.ResolveProximityExpressionsAsync(solutionInfo, document.Id, span, cancellationToken),
DisposalToken);

if (!input.HasSpans)
{
Expand All @@ -208,11 +208,11 @@ private async Task VerifyBreakpointRangeAsync(TestCode input)
var span = inputText.GetLinePosition(input.Position);

var result = await RemoteServiceInvoker
.TryInvokeAsync<IRemoteDebugInfoService, LinePositionSpan?>(
document.Project.Solution,
(service, solutionInfo, cancellationToken) =>
service.ResolveBreakpointRangeAsync(solutionInfo, document.Id, span, cancellationToken),
DisposalToken);
.TryInvokeAsync<IRemoteDebugInfoService, LinePositionSpan?>(
document.Project.Solution,
(service, solutionInfo, cancellationToken) =>
service.ResolveBreakpointRangeAsync(solutionInfo, document.Id, span, cancellationToken),
DisposalToken);

if (result is not { } breakpoint)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.Razor.IntegrationTests;

public class DiagnosticTests(ITestOutputHelper testOutputHelper) : AbstractRazorEditorTest(testOutputHelper)
{
[ConditionalSkipIdeFact(Issue = "https://github.com/dotnet/razor/issues/8150")]
[IdeFact]
public async Task Diagnostics_ShowErrors_Razor()
{
// Arrange
Expand Down Expand Up @@ -50,7 +50,7 @@ public void Function(){
});
}

[ConditionalSkipIdeFact(Issue = "https://github.com/dotnet/razor/issues/8150")]
[IdeFact]
public async Task Diagnostics_ShowErrors_Html()
{
// Arrange
Expand Down Expand Up @@ -82,7 +82,7 @@ await TestServices.Editor.SetTextAsync(@"
});
}

[ConditionalSkipIdeFact(Issue = "https://github.com/dotnet/razor/issues/8150")]
[IdeFact]
public async Task Diagnostics_ShowErrors_CSharp()
{
// Arrange
Expand Down Expand Up @@ -114,7 +114,7 @@ await TestServices.Editor.SetTextAsync(@"
});
}

[ConditionalSkipIdeFact(Issue = "https://github.com/dotnet/razor/issues/8150")]
[IdeFact]
public async Task Diagnostics_ShowErrors_CSharp_NoDocType()
{
// Why this test, when we have the above test, and they seem so similar, and we also have Diagnostics_ShowErrors_CSharpAndHtml you ask? Well I'll tell you!
Expand Down Expand Up @@ -154,7 +154,7 @@ await TestServices.Editor.SetTextAsync(@"
});
}

[ConditionalSkipIdeFact(Issue = "https://github.com/dotnet/razor/issues/8150")]
[IdeFact]
public async Task Diagnostics_ShowErrors_CSharpAndHtml()
{
// Arrange
Expand Down