-
Notifications
You must be signed in to change notification settings - Fork 511
Debugger jumps into middle of comment-based help of current function instead of called function body #4103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger jumps into middle of comment-based help of current function instead of called function body #4103
Comments
When that happens, can you type |
Oh, it is in the parameter block of the called function so in the correct place, just the view is not updated: 24: #>
25: [CmdletBinding()]
26: [OutputType([Management.Automation.PSCredential])]
27: param(
28: [ValidateNotNullOrEmpty()]
29:* [String]$UserName = [Environment]::UserName
30: )
31:
32: try {
33: #Get import key file and credential file paths based on user name
34: $files = Get-KBCredentialFilePath -UserName $UserName
35:
36: #Throw exception when import key file is not found
37: if (-not [IO.File]::Exists($files['KeyFile'])) {throw [IO.FileNotFoundException] ('Import key file not found: "{0}"' -f $files['KeyFile'])}
38:
39: #Throw exception when credential file is not found |
Talked this over a bit in discord. Looks like we are setting cursor position but not moving to the next file. So either our call to switch to the file is failing or we're hitting a race where we set position and that's canceling the switch? Something like that. Either way definitely our bug. |
Prerequisites
Summary
Debugger jumps into middle of comment-based help of current function instead of called function body.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
It happens also in previous stable version of extension (v2022.6.3).
Visuals
Logs
20220803T165817.zip
The text was updated successfully, but these errors were encountered: