Skip to content

Commit f6ffea4

Browse files
committed
Update a language service test to use .psm1 file
This changes updates the language service command completion tests to use a file with a .psm1 extension to ensure that this file type works correctly.
1 parent 54cde17 commit f6ffea4

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class CompleteCommandFromModule
1111
public static readonly ScriptRegion SourceDetails =
1212
new ScriptRegion
1313
{
14-
File = @"Completion\CompletionExamples.ps1",
14+
File = @"Completion\CompletionExamples.psm1",
1515
StartLineNumber = 13,
1616
StartColumnNumber = 11
1717
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class CompleteCommandInFile
1111
public static readonly ScriptRegion SourceDetails =
1212
new ScriptRegion
1313
{
14-
File = @"Completion\CompletionExamples.ps1",
14+
File = @"Completion\CompletionExamples.psm1",
1515
StartLineNumber = 8,
1616
StartColumnNumber = 7
1717
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class CompleteVariableInFile
1111
public static readonly ScriptRegion SourceDetails =
1212
new ScriptRegion
1313
{
14-
File = @"Completion\CompletionExamples.ps1",
14+
File = @"Completion\CompletionExamples.psm1",
1515
StartLineNumber = 10,
1616
StartColumnNumber = 9
1717
};

test/PowerShellEditorServices.Test.Shared/PowerShellEditorServices.Test.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<Compile Include="SymbolDetails\FindsDetailsForBuiltInCommand.cs" />
5858
</ItemGroup>
5959
<ItemGroup>
60-
<None Include="Completion\CompletionExamples.ps1">
60+
<None Include="Completion\CompletionExamples.psm1">
6161
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6262
</None>
6363
<None Include="Debugging\VariableTest.ps1" />

0 commit comments

Comments
 (0)