Page 1 of 1

[PSS 2015] Minor Autocomplete / Primal Sense Tweaks

Posted: Wed Jan 13, 2016 8:00 am
by Bosparan
Hi guys,

two more minor tweaks have come up:

Primal Sense in ValidateScript
When manually typing a validate script on a parameter block, $_ refers to the parameter after type-coercion. Thus it would make sense to provide primal sense for it.

Autocomplete on .NET Types
When I'm typing a .NET type with braces (e.g. when casting or as parameter type constraint), autocomplete will finish the type and close the brace. This is a bit bothersome when I want to create an array of the type.
So I thought ... how about adding a function key to autocomplete to array instead?

e.g ("|" is - as usual - the cursor location):
  1. # As we type (Proposes: System.String)
  2. [System.Str |
  3.  
  4. # Autocomplete with ENTER
  5. [System.String]
  6.  
  7. # Autocomplete with ALT + ENTER
  8. [System.String[]]
Cheers,
Bosparan