Skip to content

Opening the home folder would cause all PowerShell files in it to be analyzed #4821

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
6 tasks done
handrade-xom opened this issue Nov 7, 2023 · 2 comments
Closed
6 tasks done
Assignees
Labels

Comments

@handrade-xom
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed 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

Install the extension and open VS Code, this will consume between 2GB and 3GB of RAM memory

PowerShell Version

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

Visual Studio Code Version

1.84.1
2b35e1e6d88f1ce073683991d1eff5284a32690f
x64

Extension Version

Steps to Reproduce

Install the extension and open VS Code, this will consume between 2GB and 3GB of RAM memory

Visuals

No response

Logs

No response

@handrade-xom handrade-xom added the Issue-Bug A bug to squash. label Nov 7, 2023
@SydneyhSmith
Copy link
Collaborator

Thanks @handrade-xom have you also opened a workspace? Or an untitled workspace? How many files are in your workspace?

@hendersonandrade
Copy link

Thanks @handrade-xom have you also opened a workspace? Or an untitled workspace? How many files are in your workspace?

hi @SydneyhSmith , I solved the issue here. It was necessary to change some of the extension's settings:

  1. the first one was the PowerShell Cwd:

image

  1. the second change was check the Analyze Open Documents Only option:

image

@andyleejordan andyleejordan changed the title Powershell extension is consuming high memory Opening the home folder would cause all PowerShell files in it to be analyzed Nov 10, 2023
@andyleejordan andyleejordan moved this to In Progress in Flying Fox Nov 10, 2023
@andyleejordan andyleejordan moved this from In Progress to Done in Flying Fox Nov 10, 2023
@andyleejordan andyleejordan self-assigned this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

4 participants