Dongbo Wang
fc4c9cbfd7
Initial work of the subsystem plugin model (for minimal powershell) ( #13186 )
2020-08-20 17:41:44 -07:00
Dongbo Wang
98dbaefcd6
Optimize 'GetSystemLockdownPolicy' for non-lockdown scenarios ( #13438 )
2020-08-19 10:48:14 -07:00
Steve Lee
d67649c300
Fix $? to not be $false when native command writes to stderr ( #13395 )
2020-08-19 09:31:38 -07:00
James Truher [MSFT]
f8b9e8e9db
Create warnings when UTF7 is specified as an encoding ( #13430 )
2020-08-17 22:19:22 -07:00
Aditya Patwardhan
485ec44005
Add the parameter -Paged to Get-Help to support paging ( #13374 )
2020-08-11 15:51:00 -07:00
Thomas Nieto
46efd38ef5
Fix Get-Help not properly displaying if parameter supports wildcards ( #13353 )
2020-08-11 10:20:45 -07:00
xtqqczze
d8f8f0a8bc
Fix comparison of value type object to null ( #13285 )
2020-08-10 14:56:14 -07:00
Christopher Yeleighton
16425645ab
Improve inline documentation for VerbInfo ( #13265 )
2020-08-10 14:43:33 -07:00
xtqqczze
dd85bd1178
Use 'is' operator instead of 'as' operator ( #13287 )
2020-08-10 09:07:31 +05:00
Dongbo Wang
4214800690
Refresh and enable the ComInterop code in PowerShell ( #13304 )
2020-08-07 16:24:10 -07:00
Steve Lee
511858a267
Make $ErrorActionPreference not affect stderr output of native commands ( #13361 )
2020-08-07 14:19:17 -07:00
Robert Holt
ef7c7d60a6
Revert "Add password confirmation in Get-Credential ( #12782 )" ( #13372 )
...
This reverts commit a6bd47f031 .
2020-08-07 12:11:16 +05:00
Christopher Yeleighton
8626937ac4
Change "operable" to "executable" ( #13281 )
...
* Change "operable" to "executable" in a resource string
2020-08-06 13:02:43 +05:00
Thomas Nieto
bedd3bc287
Remove AssemblyInfo property from list views ( #13331 )
2020-08-05 12:17:09 -07:00
xtqqczze
aa43d867af
Switch to MIT license for files copied from Roslyn ( #13305 )
2020-08-05 10:51:57 -07:00
Dongbo Wang
63cf0c330c
Allow explicitly specified named parameter to supersede the same one from hashtable splatting ( #13162 )
...
Allow explicitly specified named parameter to supersede the same one from hashtable splatting.
The work is done in parameter binder, so that parameters can be resolved to cover a parameter's official name, alias name, and unambiguous partial prefix name.
The changes covers covers Hashtable splatting in 3 scenarios:
- Cmdlet or advanced script invocation;
- Simple function invocation;
- ScriptBlock.GetPowerShell(...), where the script block contains command invocation only and uses Hashtable splatting.
Some code refactoring is done to ParameterBinderController to avoid redundant code being duplicated in CmdletParameterBinderController and ScriptParameterBinderController.
2020-08-05 10:59:53 +05:00
Christopher Yeleighton
7ed43d9c16
HelpSystem: Improve the wording of inline comments ( #13274 )
2020-08-04 15:11:10 -07:00
Joel Sallow (/u/ta11ow)
6aa08f9559
Improve BigInteger casting behaviours ( #12629 )
2020-08-04 10:45:36 +05:00
xtqqczze
4597b41396
Use is not syntax where appropriate and remove unnecessary parentheses ( #13323 )
2020-07-31 16:41:59 -07:00
Dongbo Wang
4464d1b414
Add DefaultVisit method to the visitor interface and class ( #13258 )
2020-07-31 10:16:59 -07:00
Steve Lee
99b3bfaa34
Change Read-Host -MaskInput to use existing SecureString path, but return as plain text ( #13256 )
2020-07-30 22:16:37 -07:00
xtqqczze
2eade89f25
Remove unreachable code in CustomShellCommands.cs ( #13316 )
2020-07-30 17:59:11 -07:00
Dongbo Wang
4b9b0788ed
Revert "Use is null syntax ( #13277 )" ( #13322 )
...
This reverts commit 6c03776d74 .
2020-07-30 16:06:38 -07:00
xtqqczze
6c03776d74
Use is null syntax ( #13277 )
...
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Dongbo Wang
74ddc3e8a1
Remove ComEnumerator as COM objects using IEnumerator is now supported in dotnet 5.0 ( #13259 )
2020-07-29 22:12:00 +05:00
Dongbo Wang
cfb1952fd2
Use temp personal path at Runspace startup when env 'HOME' not defined ( #13239 )
2020-07-23 10:24:42 -07:00
xtqqczze
6ca0024db9
Fix SA1026CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation ( #13249 )
...
See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
2020-07-23 22:19:15 +05:00
Dongbo Wang
f6f966b3dc
Fix Invoke-Command to detect recursive call of the same history entry ( #13197 )
2020-07-23 09:11:25 -07:00
Shri Ram K S
a6bd47f031
Add password confirmation in Get-Credential ( #12782 )
...
* Add parameter -ReEnterPassword to prompt user to re-enter the password for confirmation
* Add new public overload function PromptForCredential
2020-07-22 19:13:42 +05:00
github-actions[bot]
9c396aa0ea
Update .NET SDK version from 5.0.100-preview.7.20366.2 to 5.0.100-preview.7.20366.15 ( #13200 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-07-22 18:53:33 +05:00
xtqqczze
2c18386d79
Avoid usage of do statement to create an infinite loop ( #13137 )
...
* Autofix RCS1063
2020-07-20 09:23:14 +05:00
github-actions[bot]
1ed554dde4
Update .NET SDK version from 5.0.100-preview.7.20364.3 to 5.0.100-preview.7.20366.2 ( #13192 )
2020-07-16 12:12:40 -07:00
Dongbo Wang
f90712a317
Handle WSL filesystem path when analyze security zone of a file ( #13120 )
2020-07-13 13:05:01 -07:00
xtqqczze
8901d2a509
Cleanup: use int instead of uint in places where it's more appropriate ( #13141 )
2020-07-13 07:10:57 -07:00
Ilya
5ad8a5916f
Add support for some .NET intrinsic type converters ( #12580 )
2020-07-08 14:32:58 -07:00
github-actions[bot]
7da0742cb6
Update .NET SDK version from 5.0.100-preview.6.20318.15 to 5.0.100-preview.7.20356.2 ( #13125 )
2020-07-07 12:10:11 -07:00
Robert Holt
d3addeb3da
Fix Move-Item to support cross-mount moves on Unix ( #13044 )
2020-07-06 16:39:08 -07:00
xtqqczze
9aba45f18c
Use null check with pattern-matching instead of object.ReferenceEquals ( #13065 )
2020-07-06 21:51:24 +05:00
Christopher Yeleighton
babf02768b
Fix error message from new symbolic link missing target ( #13085 )
2020-07-03 12:54:26 +05:00
Aditya Patwardhan and Aditya Patwardhan
808bf22d2f
Ensure assemblies listed FileList are not loaded ( #12968 )
...
Co-authored-by: Aditya Patwardhan <Aditya Patwardhan>
2020-06-30 10:16:13 -07:00
xtqqczze
bd90f1921f
Code performance fixes ( #12956 )
...
* RCS1080: Use 'Count/Length' property instead of 'Any' method
* RCS1077: Optimize LINQ method call
* RCS1235: Optimize method call
2020-06-25 11:30:40 +05:00
Aditya Patwardhan
8030889b7b
Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20318.15 ( #13018 )
2020-06-23 17:30:31 -07:00
Aditya Patwardhan
0d75cfdc2d
Revert "Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20319.2 ( #12992 )" ( #13017 )
...
This reverts commit ce8dc1e30c .
2020-06-23 11:52:20 -07:00
Joel Sallow (/u/ta11ow)
02af121ca2
Fix issue in Select-Object where Hashtable members (e.g., Keys) cannot be used with -Property or -ExpandProperty ( #11097 )
2020-06-19 15:46:54 -07:00
github-actions[bot]
ce8dc1e30c
Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20319.2 ( #12992 )
2020-06-19 11:28:09 -07:00
xtqqczze
eb9acbc952
Replace SortedList with Generic.SortedList<TKey,TValue> ( #12954 )
2020-06-19 14:50:31 +05:00
xtqqczze
a15e5090e2
Use HashSet instead of Hashtable with null values ( #12958 )
2020-06-19 08:31:18 +05:00
Steve Lee
ec20043a91
Remove use of Test-Path in ConciseView ( #12778 )
2020-06-11 16:07:18 +05:00
xtqqczze
58c371ca31
Fix RCS1114: Remove redundant delegate creation ( #12917 )
2020-06-11 14:01:01 +05:00
xtqqczze
0d5d017f0f
Code redundancy fixes ( #12916 )
...
* Autofix `RCS1036: Remove redundant empty line`
* Autofix `RCS1037: Remove trailing white-space`
* Autofix `RCS1033: Remove redundant boolean literal`
* Autofix: `RCS1038: Remove empty statement`
* Autofix `RCS1041: Remove empty initializer`
* Autofix `RCS1097: Remove redundant 'ToString' call
* Autofix: `RCS1420: Operator is unnecessary`
2020-06-11 11:25:35 +05:00