Closed BorysMariusz closed 1 year ago
How large is your project, i.e. how many PowerShell files (and LOC)? Does the RAM usage decrease if you enable the setting powershell.analyzeOpenDocumentsOnly
?
Hello The way I use vscode is opening folder with bunch of files from gitrepo and or the scripts. I will check the setting you have mentioned.
Best regards and thank you for feedback
Mariusz
I am making the test right now. I am running script to search some resources in Azure from my local laptop via vscode. pwsh service is mac 542 MB .... :) I will test more this week but it seems it is working. Thank you @andschwa
Fantastic! We added that setting in order to strike the balance between the default of analyzing a whole projects' files (so that the problems pane populates for the project, and this works fine for most repos) and a sensible restricted mode where you still get analysis but only on-demand (for repos like yours where there's just too many files).
This issue has been marked as answered and has not had any activity in a day. It has been automatically closed for housekeeping purposes.
Prerequisites
Summary
I am working on Macbook M1 with VScode and PowerShell Core. When the Vscode is opening the Integrated Terminal with pwsh is being opened. And from the beginning it consumes 5 GB of RAM. When I am running some PowerShell scripts it increased more, the highest usage was 14 GB. MacOS, vscode and PowerShell extension are up to date.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Open pwsh integrated terminal in vscode
Visuals
No response
Logs
No response