Skip to content

Commit 54fdb79

Browse files
committed
undo hacks
1 parent 6086845 commit 54fdb79

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/Bicep.LangServer.IntegrationTests/CompletionTests.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ namespace Bicep.LangServer.IntegrationTests
4040
[SuppressMessage("Style", "VSTHRD200:Use \"Async\" suffix for async methods", Justification = "Test methods do not need to follow this convention.")]
4141
public class CompletionTests
4242
{
43-
// cache the provider
4443
public static readonly IResourceTypeProvider TypeProvider = AzResourceTypeProvider.CreateWithAzTypes();
4544

4645
[NotNull]
@@ -561,7 +560,7 @@ static void AssertAllCompletionsContainResourceLabel(IEnumerable<CompletionList?
561560
}
562561
}
563562

564-
await RunCompletionScenarioTest(fileWithCursors, AssertAllCompletionsContainResourceLabel);
563+
await RunCompletionScenarioTest(this.TestContext, fileWithCursors, AssertAllCompletionsContainResourceLabel);
565564
}
566565

567566
[TestMethod]
@@ -646,15 +645,6 @@ private static async Task RunCompletionScenarioTest(TestContext testContext, str
646645
assertAction(completions);
647646
}
648647

649-
private static Task RunCompletionScenarioTest(object testContext, Action<IEnumerable<CompletionList?>> assertAction222)
650-
{
651-
/*
652-
* The compiler on GitHub actions seems to believe that we are only passing 2 arguments to this method.
653-
* Let's make that true, so we can compile the code successfully to get a stack trace at runtime.
654-
*/
655-
throw new NotImplementedException("This should not be getting called!!!");
656-
}
657-
658648
private static void AssertAllCompletionsNonEmpty(IEnumerable<CompletionList?> completionLists)
659649
{
660650
foreach (var completionList in completionLists)
@@ -775,7 +765,7 @@ value is null
775765
if (value is JObject @object)
776766
{
777767
const string omnisharpHandlerIdPropertyName = "$$__handler_id__$$";
778-
768+
779769
if (@object.Property(omnisharpHandlerIdPropertyName) != null)
780770
{
781771
@object.Remove(omnisharpHandlerIdPropertyName);

0 commit comments

Comments
 (0)