-
Notifications
You must be signed in to change notification settings - Fork 513
Extension needs tremendous RAM #2092
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
Comments
Duplicate of #1552. This happens for a couple of reasons. One is because of the extension trying to resolve references in your ps1 files. To work where references come from, we must resolve file paths and modules and use PowerShell to do so. Another cause is PSScriptAnalyzer diagnosing and formatting, which again performs module look ups to determine things like aliases. We're doing some work in the extension currently that we hope will pay off in terms of improved performance here. You might experience some improvement by turning off CodeLens, which should be covered in the linked issue. |
I was looking into the same issues and noticed that it (above mentioned script) seems it scans all over the hard drives on places I even forgot they exist ;) Maybe 'we must resolve file paths' step is what I'm hitting into. The memory ends up around 600M on the scan is completed. As soon as I start a dummy script in the editor the scanning starts again. (Observing with Sysinternal's ProcessMonitor) |
Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead. |
Issue Type: Bug
I openend different *.ps1 files, but only in read mode.
No script was started and after some time the extension suddenly needed a lot of RAM.
Visual Code was installed on Server 2016 and is a device installation (no user setup).
This behavior has not been observed in the past.
Extension version: 2019.5.0
VS Code version: Code 1.36.1 (2213894ea0415ee8c85c5eea0d0ff81ecc191529, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.14393
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled_readback
webgl2: enabled_readback
The text was updated successfully, but these errors were encountered: