PowerShellEditorServices
PowerShellEditorServices copied to clipboard
Slow performance for alias lookup
In Visual Studio Code, the ctrl + F5
keyboard shortcuts translates PowerShell command aliases. The performance of this leaves a lot to be desired, and sometimes results in a confusing end user experience when you're rapidly moving the cursor around the editor.
Can we improve performance of this function, to make it more usable? If necessary, we could cache a lookup table, and either invalidate it on-demand, or periodically update it with a background worker.
Cheers, Trevor Sullivan https://trevorsullivan.net https://twitter.com/pcgeek86
Doh! And we are going to have to abandon that keyboard shortcut. In the next version of VSCode, that shortcut is used to "run without debugging".
Thanks for letting us know. I think we're going to need a more general strategy for caching information about cmdlets and aliases, especially when we start to gather per-parameter help information, etc. Will be good to look into this around the same time as the work on the other issue you filed today.