Skip to content

Commit 2a88a2e

Browse files
committed
.net 8 requires a newline at the start of the script to recognise the scriptAST correctly otherwise it just picks up the $a = 1..5
1 parent 1ba7118 commit 2a88a2e

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/RefactorVariablesData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ internal static class RenameVariableData
160160
{
161161
FileName = "VariableInForloopDuplicateAssignment.ps1",
162162
Column = 14,
163-
Line = 8,
163+
Line = 9,
164164
RenameTo = "Renamed"
165165
};
166166
public static readonly RenameSymbolParams VariableInWhileDuplicateAssignment = new()

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableInForeachDuplicateAssignment.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
$a = 1..5
23
$b = 6..10
34
function test {

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableInForeachDuplicateAssignmentRenamed.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
$a = 1..5
23
$b = 6..10
34
function test {

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableInForloopDuplicateAssignment.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
$a = 1..5
23
$b = 6..10
34
function test {

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableInForloopDuplicateAssignmentRenamed.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
$a = 1..5
23
$b = 6..10
34
function test {

0 commit comments

Comments
 (0)