PowerShellEditorServices icon indicating copy to clipboard operation
PowerShellEditorServices copied to clipboard

Slow performance for alias lookup

Open pcgeek86 opened this issue 8 years ago • 2 comments

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

pcgeek86 avatar Mar 29 '16 19:03 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".

rkeithhill avatar Mar 29 '16 19:03 rkeithhill

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.

daviwil avatar Mar 29 '16 20:03 daviwil