MartinGC94
c196e2f793
Improve Hashtable completion in multiple scenarios ( #16498 )
2022-03-03 18:09:12 -08:00
Dongbo Wang
102782fbb0
Fix the parsing code for method generic arguments ( #16937 )
2022-03-03 09:21:21 -08:00
Dongbo Wang
9b2d97e3e2
Update a few tests to make them more stable in CI ( #16944 )
2022-03-02 17:39:30 -08:00
Dongbo Wang
e1f52dda77
Refactor module assembly loading logic to allow the whole module to be loaded in a custom ALC ( #16889 )
2022-02-23 15:01:12 -08:00
Dongbo Wang
102e8285bb
Bump PSReadLine from 2.1.0 to 2.2.2 ( #16910 )
2022-02-23 11:36:46 -08:00
ayousuf23
31c14f2ad3
Updated background invocation & operator to use -WorkingDirectory when starting a new job ( #16180 )
2022-02-21 10:02:30 -08:00
Aditya Patwardhan
77caf718cd
Update projects and scripts to use .NET 7 preview 1 pre-release builds ( #16856 )
...
* Update script to consume .NET 7 builds
* Update target framework
* Add dotnet metadata override value
* Update dependencies
* Update analyzer
* Conditionally add output argument
* Update files.wxs
* Fix tests
* Update Microsoft.PowerShell.Native to 7.3.0-preview.1
* Disable psget tests
* Update to latest build for .NET 7 preview 1
* Disable ready to run
* Update version of `Microsoft.AspNetCore.Mvc.NewtonsoftJson` package
* Update cgmanifest and startup test
2022-02-16 09:56:41 -08:00
ayousuf23 and Dongbo Wang
a9a235d469
Prevent tab completion if the word to complete is a single dash ( #16781 )
...
* added code to prevent tab completion if the word to complete is a single dash
* added a test for testing tab completion if the word to complete is a single dash
* Minor update and add comment
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2022-02-09 12:59:29 -08:00
Dongbo Wang
30eac0a11e
Update to use windows-latest as the build agent image ( #16831 )
2022-02-07 17:34:52 -08:00
Dongbo Wang
35ad64e11b
Add a couple fixes to generic method invocation ( #16822 )
2022-02-03 11:58:02 -08:00
Dongbo Wang
bbb11dd07a
Fix the clean block for generated proxy function ( #16827 )
2022-02-03 11:39:08 -08:00
MartinGC94
7d3260fe0d
Add completion for loop labels after Break/Continue ( #16438 )
...
Adds completion for loop labels after labeled control flow statements such as Break and Continue.
The completion will look for any loops with a label that surrounds the Break/Continue keywords.
The tooltips for the completion entries shows the relevant loop.
2022-02-01 09:14:23 +05: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
hammy3502
3eca7c019e
Adds a .ResolvedTarget Property to File-System Items to Reflect a Symlink's Target as FileSystemInfo ( #16490 )
2022-01-21 09:23:11 +05:00
Mathias R. Jessen
686c84cccc
Add new parameter to Start-Sleep: [-Duration] <timespan> ( #16185 )
2022-01-13 17:39:54 -08:00
KiwiThePoodle
83a809b1f0
Make Measure-Object ignore missing properties unless running in strict mode ( #16589 )
2022-01-13 09:33:43 -08:00
Thomas-Yu
ed6e0588c8
Add -StrictMode to Invoke-Command to allow specifying strict mode when invoking command locally ( #16545 )
2022-01-12 11:17:02 -08:00
Dongbo Wang
cce64f49de
Report error when PowerShell built-in modules are missing ( #16628 )
2022-01-12 10:02:03 -08:00
Steve Lee
0f21156dee
Fix $PSNativeCommandArgPassing = Windows to handle empty args correctly ( #16639 )
2022-01-11 23:21:32 -08:00
Keith Hill
e2f39fa0eb
Reduce the amount of startup banner text ( #16516 )
2022-01-10 15:08:00 -08:00
Steve Lee
a9b14a13fd
Add exec cmdlet for bash compatibility ( #16462 )
2022-01-04 14:09:27 -08:00
Steve Lee
7a2b44523b
Fix web cmdlets so that an empty Get does not include a content-length header ( #16587 )
2022-01-03 11:20:33 -08:00
Joey Robichaud
b7ce3c568c
Fix parsing SemanticVersion build label from version string ( #16608 )
2021-12-17 09:39:26 -08:00
Andrew
1d1e42fd1a
Merge branch 'master' into BringChangesFrom730P1
2021-12-16 13:45:37 -08:00
Andrew Menagarishvili
3f1c03d494
Merged PR 18449: Change default for $PSStyle.OutputRendering to Ansi
...
Cherry picked from !18333
Cherry-picked from commit `5cb8a2b3`.
2021-12-16 13:39:56 -08:00
Paul Higinbotham
cadd5762ea
Fix ForEach-Object -Parallel when passing in script block variable ( #16564 )
...
ForeEach-Object -Parallel using variable processing walks the script block AST to determine if the using variable was defined in the current scope, and does this by tracking the number of 'ForEach-Object -Parallel' commands in the call chain.
However, the provided script block is different, depending on whether it is passed in as a variable or via parameter binding.
$myScript = '"Hello!"'
1 | ForEach-Object -Parallel ([scriptblock]::Create($myScript))
# Script block Ast does not contain the 'ForEach-Object' command in the call chain
1 | ForEach-Object -Parallel { "Hello!" }
# Script block Ast does contain the 'ForEach-Object' command in the call chain
This change takes into account the two forms of script blocks
2021-12-14 08:11:19 +05:00
Paul Higinbotham
64d2fe26f3
Fix PSVersion parameter version checks and error messages for PowerShell 7 remoting ( #16228 )
2021-12-01 15:54:25 -08:00
Dongbo Wang
88ba3f61fa
Use the same temporary home directory when 'HOME' env variable is not set ( #16263 )
2021-11-22 10:44:58 -08:00
Shri Ram K S
7bb8fa16ab
Fix the Max_PATH condition check to handle long path correctly ( #16487 )
2021-11-19 15:48:26 -08:00
MartinGC94
965dc8f40f
Fix tab completion within the script block specified for the ValidateScriptAttribute. ( #14550 )
2021-11-09 18:26:14 -08:00
Aditya Patwardhan
f8d6b2f9fe
Update metadata.json in preparation on 7.3.0-preview.1 release ( #16406 )
...
* Update `metadata.json` in preparation on `7.3.0-preview.1` release
* Update PSVersion table and tests
2021-11-09 08:31:01 -08:00
Maksim Ivanyuk
674ef888a2
Add -HttpVersion parameter to web cmdlets ( #15853 )
2021-11-02 16:53:36 -07:00
Austin Farmer
107fd7ab1f
Add support to web cmdlets for open-ended input tags ( #16193 )
2021-11-02 09:39:28 -07:00
Ryan Polley
cf22188e95
Add more tests to Tee-Object -Encoding ( #14539 )
2021-11-01 23:06:05 -07:00
Dongbo Wang
723a50832d
Don't throw exception when trying to resolve a possible link path ( #16310 )
2021-10-30 08:54:23 -07: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
Kev Ritchie
01426b2763
Fix ConvertTo-Json -Depth to allow 100 at maximum ( #16197 )
2021-10-28 11:56:55 -07:00
Dongbo Wang
89dd5b8127
Remove the outdated test ( #16269 )
2021-10-19 13:45:36 +05:00
Travis Plunk
3893c4d55b
Disallow Add-Type in NoLanguage mode on a locked down machine ( #16245 )
2021-10-14 14:53:41 -07:00
Keith Hill
b94dd91e74
Specify exe path as TargetObect for non-zero exit code ErrorRecord ( #16108 )
2021-10-14 14:47:54 -07:00
Steve Lee
d0e823797f
Don't allow Move-Item with FileSystemProvider to move a directory into itself ( #16198 )
2021-10-12 14:16:32 -07:00
Dongbo Wang
c8984c0517
Make property names for the color VT sequences consistent with documentations ( #16212 )
2021-10-11 14:58:51 -07: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
Dongbo Wang
e98a8c8601
Fix '-PipelineVariable' to set variable in the right scope ( #16199 )
2021-10-07 10:26:21 -07:00
Dongbo Wang
2f57bf848b
Change Target from a CodeProperty to be an AliasProperty that points to FileSystemInfo.LinkTarget ( #16165 )
2021-10-05 10:29:16 -07:00
Steve Lee
024f409763
Add isOutputRedirected parameter to GetFormatStyleString() method ( #14397 )
2021-09-09 11:50:36 -07:00
Paul Higinbotham
0d7ba2fe5a
Fix ConvertTo-SecureString with key regression due to .NET breaking change ( #16068 )
2021-09-09 10:36:05 -07:00
Steve Lee
5872e47254
Fix regression in Move-Item to only fallback to CopyAndDelete in specific cases ( #16029 )
...
If Move fails, check if known case before attempting CopyAndDelete:
- if an item is attempted to be renamed across filesystem mount boundaries.
- if the source and destination do not have the same root path.
2021-09-08 11:20:30 +05:00
Dongbo Wang
66b5d50170
Set $? correctly for command expression with redirections ( #16046 )
2021-09-03 15:36:31 -07:00
Aditya Patwardhan
3bb6b2736a
Update Ubuntu images to use Ubuntu 20.04 ( #15906 )
2021-08-30 13:56:52 -07:00