You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:
PS C:\Users\Me\Desktop\Powershell\UnsavedScripts> code -v
1.19.1
0759f77bb8d86658bc935a10a64f6182c5a1eeba
x64
PS C:\Users\Me\Desktop\Powershell\UnsavedScripts> $pseditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
1 5 1 0
PS C:\Users\Me\Desktop\Powershell\UnsavedScripts> code --list-extensions --show-versions
GrapeCity.gc-excelviewer@2.0.16
ms-vscode.PowerShell@1.5.1
PS C:\Users\Me\Desktop\Powershell\UnsavedScripts> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.15063.726
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.726
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
Imagine a simple function like:
FunctionGet-GCD
{
while ($y-ne0)
{
$x,$y=$y, ($x%$y)
}
[Math]::abs($x)
}
Now, if I try to add a param, one of two things happen. Situation one:
I am adding param to this exact function in a very small script, I type "param" and hit enter, it adds a new line and I type ( and hit enter.
Perfect! Situation two:
I am adding param to this exact function in a very large lengthy script, I type "param" and hit enter, it adds a new line, then moves the cursor position back so that it is on the same line as param and also does not auto complete the closing parentheses.
This isn't just for parameters, I'm having some real problems with the text cursor being moved up again after hitting enter in large scripts.
If I had to guess, I'd point towards the whole reference count thing causing problems, but that's just speculation.
Attached Logs
Follow the instructions in the README
about capturing and sending logs.
The text was updated successfully, but these errors were encountered:
JamesLear92
changed the title
Return lines being removed automatically in very large scripts.
Cursor moving up a line after hitting return in a large script
Jan 8, 2018
System Details
$PSVersionTable
:PS U:> $PSVersionTable
Name Value
PSVersion 5.1.15063.726
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.726
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
Imagine a simple function like:
Now, if I try to add a param, one of two things happen.


Situation one:
I am adding param to this exact function in a very small script, I type "param" and hit enter, it adds a new line and I type ( and hit enter.
Perfect!
Situation two:
I am adding param to this exact function in a very large lengthy script, I type "param" and hit enter, it adds a new line, then moves the cursor position back so that it is on the same line as param and also does not auto complete the closing parentheses.
This isn't just for parameters, I'm having some real problems with the text cursor being moved up again after hitting enter in large scripts.
I have the following user settings:
If I had to guess, I'd point towards the whole reference count thing causing problems, but that's just speculation.
Attached Logs
Follow the instructions in the README
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: