Dongbo Wang
943257b247
Make some experimental features stable ( #26348 )
...
The following experimental features are made stable:
- PSNativeWindowsTildeExpansion
- PSRedirectToVariable
- PSSubsystemPluginModel
2025-10-30 14:26:03 -07:00
Dongbo Wang
ef64132f0a
Fix TypeName.GetReflectionType() to work when the TypeName instance represents a generic type definition within a GenericTypeName ( #24985 )
2025-03-17 15:40:25 -07:00
Dongbo Wang
dcf6754445
Fix the extent of the parser error when a number constant is invalid ( #24024 )
2024-07-09 10:55:25 -07:00
167a492415
Redirecting to a variable should be possible ( #20381 )
...
* add tests
* fix formatting issues
* Make redirection to variable an experimental feature.
Update test to check for experimental feature status.
Set-Variable will still have the -append parameter, but if used when the experimental feature is disabled, a parameter binding error will result.
* Check to be sure provider is not null.
* update to use different FullyQualifiedErrorId
* use Experimental attribute for append parameter rather than runtime check.
* Revert "update to use different FullyQualifiedErrorId"
This reverts commit 8b34af1ac19ecdb821b34534e446ab129830c92f.
* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs
Co-authored-by: Ilya <darpa@yandex.ru >
* Move remediation steps into resource.
Update Set-Variable -Append to be correct when -name and -value are used.
Add tests for the new behavior in Set-Variable.
* Change expected error for contrained language mode and redirection.
* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs
Co-authored-by: Ilya <darpa@yandex.ru >
* Support redirection of native app.
Add tests to validate.
* testexe needs proper case to run on linux.
* Address codefactor issues 01.
* Update src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
Co-authored-by: Steve Lee <slee@microsoft.com >
* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs
Co-authored-by: Steve Lee <slee@microsoft.com >
* Update src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
Co-authored-by: Steve Lee <slee@microsoft.com >
---------
Co-authored-by: Ilya <darpa@yandex.ru >
Co-authored-by: Steve Lee <slee@microsoft.com >
2024-06-11 12:42:04 -04:00
Dongbo Wang
d564d0fff9
Bump to .NET 9 preview 3 ( #21782 )
2024-05-09 15:36:52 -07:00
James Truher [MSFT]
e9682c151d
Fix using assembly to use Path.Combine when constructing assembly paths ( #21169 )
2024-02-01 09:49:20 -08:00
Dongbo Wang
783fb46e65
Validate the value for using namespace during semantic checks to prevent declaring invalid namespaces ( #21162 )
2024-02-01 09:42:37 -08:00
MartinGC94
6520c05949
Fix parsing for array literals in index expressions in method calls ( #19224 )
2023-06-05 14:10:03 -07:00
MartinGC94
31dd6483b2
Fix incorrect string to type conversion ( #19560 )
...
Fixes incorrect string to type conversions like: [Type] 'int]whatever' so they are no longer parsed as types.
This was fixed by adding a check for ScanType to also check that the parsed type name matches the input type name.
2023-05-31 09:39:38 +05:00
MartinGC94
1c8b58c0b4
Fix array type parsing in generic types ( #19205 )
2023-05-08 16:21:51 -07:00
MartinGC94
799eed8f57
Update and enable the test for the type of $input ( #18968 )
2023-03-13 16:17:28 -07:00
CarloToso
9a2d2afb64
Make -Encoding parameter able to take ANSI encoding in PowerShell ( #19298 )
2023-03-13 15:05:28 -07:00
Dongbo Wang
79b8140199
Make PowerShell class not affiliate with Runspace when declaring the NoRunspaceAffinity attribute ( #18138 )
2022-09-22 10:49:08 -07:00
WJKM
d75d3b6178
Add the ValidateNotNullOrWhiteSpace attribute ( #17191 )
2022-08-09 10:48:08 -07:00
Dongbo Wang
c2323db4a0
Re-enable tests because the corresponding dotnet issues were fixed ( #17839 )
2022-08-03 21:34:03 -07:00
Frode Flaten
0d52375adc
Add type accelerator ordered for OrderedDictionary ( #17804 )
2022-08-01 09:15:14 -07:00
MartinGC94
84241c3c59
Fix parser exception in using statements with empty aliases ( #16745 )
2022-07-19 10:42:31 -07:00
Shuangchi He
c5d31c9e10
Correct spelling in Comments and tests ( #17480 )
2022-06-06 09:55:33 -07:00
James Truher [MSFT]
b3632eda46
Improve unique naming for tests ( #17043 )
2022-03-23 09:24:10 -07:00
James Truher [MSFT]
e22a427345
Simplify Enum generator for the -bnot operator test ( #17014 )
2022-03-18 11:18:47 -07:00
Dongbo Wang
102782fbb0
Fix the parsing code for method generic arguments ( #16937 )
2022-03-03 09:21:21 -08:00
Dongbo Wang
35ad64e11b
Add a couple fixes to generic method invocation ( #16822 )
2022-02-03 11:58:02 -08:00
Joel Sallow (/u/ta11ow)
8c53252969
Add support to allow invoking method with generic type arguments ( #12412 )
2022-01-27 09:55:54 -08:00
Dongbo Wang
979f105a99
Fix parser to generate error when array has more than 32 dimensions ( #16276 )
...
An array cannot have more than 32 dimensions. See the doc of MarkArrayType(int rank)) https://docs.microsoft.com/en-us/dotnet/api/system.type.makearraytype?view=net-5.0#System_Type_MakeArrayType_System_Int32_ for details.
The fix is to not create the ArrayTypeName instance when the number of dimensions exceeds 32, but instead, generate a parsing error.
2021-10-29 08:16:26 +05:00
Dongbo Wang
a32700a1c1
Add clean block to script block as a peer to begin, process, and end to allow easy resource cleanup ( #15177 )
2021-10-11 14:49:09 -07:00
Aditya Patwardhan
3bb6b2736a
Update Ubuntu images to use Ubuntu 20.04 ( #15906 )
2021-08-30 13:56:52 -07:00
Aditya Patwardhan
31a4528302
Update to .NET 6 Preview 6 and use crossgen2 ( #15763 )
2021-07-19 16:06:39 -07:00
Staffan Gustafsson
be7d36603d
Adding IArgumentCompleterFactory for parameterized ArgumentCompleters ( #12605 )
2021-03-25 17:06:40 -07:00
Aditya Patwardhan
cb8165eeef
Move PSNullConditionalOperators feature out of experimental ( #13529 )
2020-08-27 10:11:01 -07:00
Joel Sallow (/u/ta11ow)
6aa08f9559
Improve BigInteger casting behaviours ( #12629 )
2020-08-04 10:45:36 +05:00
Carl Morris
2ea18ee6c9
Flag default switch statement condition clause as keyword ( #10487 )
2020-06-09 10:22:37 -07:00
Joel Sallow (/u/ta11ow)
7bc2617fe3
Fix string parameter binding for BigInteger numeric literals ( #11634 )
2020-05-12 16:31:37 -07:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Joel Sallow (/u/ta11ow)
ba53621894
Allow shorter signed hex literals with appropriate type suffixes ( #11844 )
2020-04-20 16:51:40 -07:00
Bryan Berns
5f89a10f5b
Added Support For Big Endian UTF-32 ( #11947 )
2020-04-07 14:33:15 -07:00
Steve Lee
f23be437af
Fix terms checker issues ( #12189 )
2020-03-24 11:38:45 -07:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
Tyler James Leonhardt
ac1b83f152
Use Environment.NewLine instead of hard-coded linefeed in ParseError.ToString ( #11746 )
2020-02-03 14:03:12 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
xtqqczze
bb58e2aab6
Correct case of $false special variable
2020-01-13 19:25:35 +00:00
xtqqczze
47a3b4e293
Correct case of $true special variable
2020-01-13 19:25:09 +00:00
xtqqczze
679702ba05
Correct case of $PSDefaultParameterValues special variable
2020-01-13 19:21:25 +00:00
xtqqczze
d58e1ff13b
Correct case of $MyInvocation special variable
2020-01-13 19:04:32 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Aditya Patwardhan
2dbb5717ce
Make null member access tests as string to avoid parsing errors ( #11385 )
...
* Make null member access tests as string to avoid parsing errors
* Add PSNullConditionalOperators feature to testmetadata.json
* Add Parsing tests to be skipped
* Add tabcompletion tests
2019-12-21 00:14:07 +00:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Aditya Patwardhan
2579c00a20
Support null-conditional operators ?. and ?[] in PowerShell language ( #10960 )
2019-11-15 16:39:53 -08:00
Aditya Patwardhan
425bc36a6f
Implement Null Coalescing and Null Coalescing assignment operators ( #10636 )
2019-10-17 10:21:24 -07:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00