Skip to content

Commit ff29c90

Browse files
committed
Fix unit test broken by GitHub Action image update
Which now includes an AWS module with a conflicting completion.
1 parent 09080fe commit ff29c90

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/PowerShellEditorServices.Test.Shared/Completion/CompleteCommandInFile.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal static class CompleteCommandInFile
1212
file: TestUtilities.NormalizePath("Completion/CompletionExamples.psm1"),
1313
text: string.Empty,
1414
startLineNumber: 8,
15-
startColumnNumber: 7,
15+
startColumnNumber: 10,
1616
startOffset: 0,
1717
endLineNumber: 0,
1818
endColumnNumber: 0,
@@ -22,17 +22,17 @@ internal static class CompleteCommandInFile
2222
{
2323
Kind = CompletionItemKind.Function,
2424
Detail = "",
25-
FilterText = "Get-Something",
26-
InsertText = "Get-Something",
27-
Label = "Get-Something",
28-
SortText = "0001Get-Something",
25+
FilterText = "Get-XYZSomething",
26+
InsertText = "Get-XYZSomething",
27+
Label = "Get-XYZSomething",
28+
SortText = "0001Get-XYZSomething",
2929
TextEdit = new TextEdit
3030
{
31-
NewText = "Get-Something",
31+
NewText = "Get-XYZSomething",
3232
Range = new Range
3333
{
3434
Start = new Position { Line = 7, Character = 0 },
35-
End = new Position { Line = 7, Character = 6 }
35+
End = new Position { Line = 7, Character = 9 }
3636
}
3737
}
3838
};

test/PowerShellEditorServices.Test.Shared/Completion/CompletionExamples.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
function Get-Something
1+
function Get-XYZSomething
22
{
33
$testVar2 = "Shouldn't find this variable"
44
}
55

66
$testVar1 = "Should find this variable"
77

8-
Get-So
8+
Get-XYZSo
99

1010
$testVar
1111

0 commit comments

Comments
 (0)