-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9038 Support private module completions
- Loading branch information
1 parent
bddc1b3
commit 01772fd
Showing
40 changed files
with
2,741 additions
and
1,434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/Bicep.Core.UnitTests/Assertions/CompilationAssertions - Copy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
//using Bicep.Core.Diagnostics; | ||
//using Bicep.Core.Semantics; | ||
//using FluentAssertions; | ||
//using FluentAssertions.Execution; | ||
//using FluentAssertions.Primitives; | ||
//using Moq; | ||
//using OmniSharp.Extensions.LanguageServer.Protocol.Models; | ||
|
||
//namespace Bicep.Core.UnitTests.Assertions | ||
//{ | ||
// public static class CompletionItemsExtensions | ||
// { | ||
// public static CompletionItemsAssertions Should(this CompletionList completionList) | ||
// { | ||
// return new CompletionItemsAssertions(completionList); | ||
// } | ||
// } | ||
|
||
// public class CompletionItemsAssertions : ReferenceTypeAssertions<CompletionList, CompletionItemsAssertions> | ||
// { | ||
// public CompletionItemsAssertions(CompletionList completionList) | ||
// : base(completionList) | ||
// { | ||
// } | ||
|
||
// protected override string Identifier => "CompletionList"; | ||
|
||
// public AndConstraint<CompletionItem> ContainByLabel(string label, string because = "", params object[] becauseArgs) | ||
// { | ||
// var matchingItem = Subject.Items.FirstOrDefault(item => item.Label == label); | ||
|
||
// Execute.Assertion | ||
// .BecauseOf(because, becauseArgs) | ||
// .ForCondition(matchingItem != null) | ||
// .FailWith("Expected to find a CompletionItem with label {0}{reason}, but did not.", label); | ||
|
||
// return new AndConstraint<CompletionItem>(matchingItem!); | ||
// } | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.