Skip to content

Commit

Permalink
Fix unit test broken by GitHub Action image update
Browse files Browse the repository at this point in the history
Which now includes an AWS module with a conflicting completion.
  • Loading branch information
andyleejordan committed Oct 29, 2024
1 parent 09080fe commit ff29c90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal static class CompleteCommandInFile
file: TestUtilities.NormalizePath("Completion/CompletionExamples.psm1"),
text: string.Empty,
startLineNumber: 8,
startColumnNumber: 7,
startColumnNumber: 10,
startOffset: 0,
endLineNumber: 0,
endColumnNumber: 0,
Expand All @@ -22,17 +22,17 @@ internal static class CompleteCommandInFile
{
Kind = CompletionItemKind.Function,
Detail = "",
FilterText = "Get-Something",
InsertText = "Get-Something",
Label = "Get-Something",
SortText = "0001Get-Something",
FilterText = "Get-XYZSomething",
InsertText = "Get-XYZSomething",
Label = "Get-XYZSomething",
SortText = "0001Get-XYZSomething",
TextEdit = new TextEdit
{
NewText = "Get-Something",
NewText = "Get-XYZSomething",
Range = new Range
{
Start = new Position { Line = 7, Character = 0 },
End = new Position { Line = 7, Character = 6 }
End = new Position { Line = 7, Character = 9 }
}
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
function Get-Something
function Get-XYZSomething
{
$testVar2 = "Shouldn't find this variable"
}

$testVar1 = "Should find this variable"

Get-So
Get-XYZSo

$testVar

Expand Down

0 comments on commit ff29c90

Please sign in to comment.