MartinGC94
MartinGC94
@jhoneill I'm sure someone has done it intentionally but I doubt it's common. Most built-in Get commands don't allow you to provide a null value to the "target" parameter, Get-Disk,...
How should conflicting type aliases work? Consider the following example: ``` using namespace System.Timers using type Timer = string [Timer] #What type is this? ``` In the above example, `Timer`...
Thanks for your thoughts @IISResetMe I've added parsing errors for conflicting aliases and type definitions. I've also allowed type aliases to take priority over using namespaces again. ``` using namespace...
@lzybkr mentioned that here as a pro tip: https://github.com/PowerShell/PowerShell/issues/8281#issuecomment-442288894 The latest set of using statements completely override the old ones. On one hand it can be a little confusing, but...
A better way to do this IMO is to use an ArgumentTransformationAttribute. The validation attributes should only validate that the input is correct.
> The PR is marked as Large. Please split the PR on some small. I hope it is possible. IMO it doesn't make sense to split it. It's just one...
Looking at the test failures, I guess we can't just ignore those errors in every scenario. I assumed I could because Experimental and hidden param attributes are ignored. One solution...
Can confirm, works for me.
I know the VS code team said it was an extension issue, but IMO it's more of a VS code issue. Tab in VS code will insert whitespace unless you...
This is amazing, the accuracy is almost as good as the real syntax highlighting the ISE provided (at least with "normal" powershell code that doesn't try to be hard to...