Skip to content

Performance is extremely slow while debbuging Powershell script after update to version 2022.6.1 #4042

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

Closed
3 of 6 tasks
guilhermepriaxio opened this issue Jun 23, 2022 · 2 comments
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.

Comments

@guilhermepriaxio
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Updated Powershell extension today and after the update the performance is extremely slow while debugging.

Reverted back to version [email protected] and the issue still persists, but is a little bit better then the last one;
Version [email protected] is a little bit better again but still very slow and with version [email protected] it run extremely fast.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.1682
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1682
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.68.1
30d9c6cd9483b2cc586687151bcbcd635f373630
x64

Extension Version

Steps to Reproduce

Open VsCode with a clean Wokspace;
Create a new file and paste the content bellow

function test{
    param ($a)
    write-host $a
}
test -a "test"

Powershell extension will load up.
Save the file;
Set a breakpoint at line 5 - test -a "test"
Start debbuging;
After hitting F5 to start the debug will actually start after a few seconds;
Step-into the function pressing F11 and again is very slow.

I'm just created this simple function to illustrate the problem the performance is slow with any code.

Visuals

No response

Logs

No response

@guilhermepriaxio guilhermepriaxio added the Issue-Bug A bug to squash. label Jun 23, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Jun 23, 2022
@andyleejordan
Copy link
Member

This was fixed in v2022.6.2-preview, closing as duplicate of #4038

@andyleejordan andyleejordan added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Jun 23, 2022
@ghost
Copy link

ghost commented Jun 24, 2022

This issue has been marked as duplicate and has not had any activity in a day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Jun 24, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants