You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take a big (more than 1500 lines) PowerShell 5.1 script,
Change something,
A PowerShell.exe process will start consuming CPU. It can consume 25% (1 out if 4 cores) for minutes.
I took couple of dumps and traces and everything points to the Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.AvoidAlias+d__7.MoveNext() method.
Disabling PSAvoidUsingCmdletAliases rule makes things a bit better. PowerShell.exe starts after saving the script, doing something but calms down much faster.
Extension version: 1.11.0
VS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:54:13.295Z)
OS version: Windows_NT x64 10.0.17763
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)
Issue Type: Performance Issue
Take a big (more than 1500 lines) PowerShell 5.1 script,
Change something,
A PowerShell.exe process will start consuming CPU. It can consume 25% (1 out if 4 cores) for minutes.
I took couple of dumps and traces and everything points to the Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.AvoidAlias+d__7.MoveNext() method.
Disabling PSAvoidUsingCmdletAliases rule makes things a bit better. PowerShell.exe starts after saving the script, doing something but calms down much faster.
Extension version: 1.11.0
VS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:54:13.295Z)
OS version: Windows_NT x64 10.0.17763
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
The text was updated successfully, but these errors were encountered: