Commit Graph
2043 Commits
Author SHA1 Message Date
Dongbo Wang 41c7cd79da Fix the error message in Hashtable-to-object conversion (#17329) 2022-05-16 14:55:00 -07:00
github-actions[bot] 38909f7ee5 Update .NET SDK version from 7.0.100-preview.2.22153.17 to 7.0.100-preview.4.22252.9 (#17061) 2022-05-11 18:27:51 -07:00
James Truher [MSFT] 1a24540e31 Enable more tests to be run in a container. (#17294) 2022-05-11 12:30:22 -07:00
Dongbo Wang 44098e771a Fix the list view to not leak VT decorations (#17262) 2022-05-10 16:05:14 -07:00
Dongbo Wang 4c6c4f30af Fix formatting truncation to handle strings with VT sequences (#17251) 2022-05-06 11:40:34 -07:00
Patrick Meinecke 99f3bb7a6a Fix line breakpoints for return statements without a value (#17179) 2022-05-04 10:56:55 -07:00
Ryne Andal 2550a3a23a Add check for ScriptBlock wrapped in PSObject to $using used in ForEach-Object -Parallel (#17234) 2022-05-04 10:51:45 -07:00
Travis Plunk 156757c93d Add container to Linux CI (#17233) 2022-05-02 15:59:23 -07:00
Dongbo Wang 36fcec3bdd Fix ForEach method to set property on a scalar object (#17213) 2022-05-02 10:07:12 -07:00
m1k0net 0067decae8 Fix Sort-Object -Stable -Unique to actually do stable sorting (#17189) 2022-04-26 16:58:37 -07:00
Dongbo Wang b898da8842 Make a variable assignment in a ParenExpression to return the variable value (#17174) 2022-04-22 10:55:38 -07:00
8d453da283 Use new Windows signature APIs from Microsoft.Security.Extensions package (#17159)
Co-authored-by: Anam Navied <anam.naviyou@gmail.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2022-04-20 21:26:57 +00:00
Stéphane BARIZIEN 4acf6b39d4 Support forward slashes in network share (UNC path) completion (#17111) (#17117) 2022-04-12 21:00:16 +05:00
Paul Higinbotham 6d4c56657b Skip failing scriptblock tests (#17093) 2022-03-31 12:24:58 -07:00
Aditya Patwardhan 9fc0e80fb7 Update dotnetmetadata.json to accept .NET 7 preview 3 builds (#17063) 2022-03-25 16:15:16 -07:00
Dongbo Wang fe11ba48b5 Re-enable PowerShellGet tests targeting PowerShell gallery (#17062) 2022-03-25 15:10:43 -07:00
Steve Lee 72e3d719d8 Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks (#16811)
* Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks

* add CSI sequence and change default back to `host`

* fix test for default outputrendering
fix regex for CSI by escaping the question mark

* remove hyperlink support
2022-03-24 17:44:35 -07:00
MartinGC94 c904d7f376 Improve member auto completion (#16504) 2022-03-24 15:55:27 -07:00
MartinGC94 123373e425 Prioritize ValidateSet completions over Enums for parameters (#15257) 2022-03-23 12:38:05 -07:00
James Truher [MSFT] b3632eda46 Improve unique naming for tests (#17043) 2022-03-23 09:24:10 -07:00
James Truher [MSFT] 74a51aa16e Use a random string for the missing help topic to improve the chances that the help topic really won't be found. (#17042) 2022-03-23 08:53:12 -07:00
Paul Higinbotham a6d04226c3 Add Custom Remote Connections Feature (#17011)
* Changes for custom remote connections

* Remove NamedPipeConnection dependency on RemoteSessionNamedPipe.

* Enable custom connection tests and tool build for all platforms

* Fix CustomConnection.Tests.ps1

* Fix tests attempt 1

* Fix tool build

* Move test to elevated

* Fix non-Windows pipe name

* Update test for non-Windows

* Skip broken non-Windows timer

* Add comment for skipped test
2022-03-23 08:04:07 -07:00
James Truher [MSFT] 10027be363 Add -because to the failing test to aid in debugging (#17030) 2022-03-18 16:15:59 -07:00
James Truher [MSFT] e22a427345 Simplify Enum generator for the -bnot operator test (#17014) 2022-03-18 11:18:47 -07:00
Aditya Patwardhan 1268a0a04f Update .NET to 7.0.0-preview.2 build (#16930) 2022-03-18 09:10:53 -07:00
Dongbo Wang 25bc64f4b0 Allow a collection that contains Automation.Null elements to be piped to pipeline (#16957) 2022-03-04 16:16:28 -08:00
Dongbo Wang a3c4a163ff Allow the PSGetMemberBinder to get value of ByRef property (#16956) 2022-03-04 15:01:18 -08:00
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
ayousuf23andDongbo 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