Commit Graph
415 Commits
Author SHA1 Message Date
github-actions[bot] 17b23e3ebc Update .NET SDK version from 7.0.100-preview.5.22307.18 to 7.0.100-preview.6.22352.1 (#17634) 2022-07-06 17:35:59 -07:00
Eugene Samoylov 735096bcc1 Show optional parameters as such when displaying method definition and overloads (#13799)
* Extend `GetMethodInfoOverloadDefinition` to show optional parameters as such (#13728)

* Fix CodeFactor style issue

* Fix review issues

* Add tests for TabExpansion2 `ToolTip`

* Fix tooltip string splitting

* Fix tests

* Bring back the namespace
2022-06-27 12:21:25 -07:00
MartinGC94 4f6e574820 Improve type inference and completions (#16963) 2022-06-13 10:04:35 -07:00
Dongbo Wang 17e4db9b1b Make Out-String and Out-File keep string input unchanged (#17455) 2022-06-08 18:13:40 -07:00
Dongbo Wang 6a522d9c68 Make AnsiRegex able to capture Hyperlink ansi sequences (#17442)
* Add the hyperlink ansi regex

* Add test

* Add comment
2022-06-08 10:35:07 -07:00
Travis Plunk 4e6909e7b8 Make Assembly Load Native test work on a FX Dependent Linux Install (#17380)
* Make Assembly Load Native test work on a FX Dependent Linux Install

* Update Assembly.LoadNative.Tests.ps1
2022-06-06 13:06:38 -07:00
Paul Higinbotham a8d55851e0 Add the -ConfigurationFile command line parameter to pwsh to support local session configuration (#17447) 2022-06-06 12:12:53 -07:00
Dongbo Wang 12de67ca5d Fix formatting to act appropriately when the style of table header or list label is empty string (#17463) 2022-06-02 09:20:32 -07:00
MartinGC94 e7f705adef Add type inference support for generic methods with type parameters (#16951) 2022-05-27 11:17:53 -07:00
Dongbo Wang 0882737efb Write out OSC indicator only if the stdout is not redirected (#17419) 2022-05-25 14:29:47 -07:00
James Truher [MSFT] 65d8f11aeb Update telemetry collecting with a few changes (#17304) 2022-05-16 17:10:51 -07:00
Dongbo Wang c40066d5f2 Fix the word wrapping in formatting to handle escape sequences properly (#17316) 2022-05-16 16:10:55 -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 4c6c4f30af Fix formatting truncation to handle strings with VT sequences (#17251) 2022-05-06 11:40:34 -07:00
Travis Plunk 156757c93d Add container to Linux CI (#17233) 2022-05-02 15:59:23 -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
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
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
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
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
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
Steve Lee a9b14a13fd Add exec cmdlet for bash compatibility (#16462) 2022-01-04 14:09:27 -08:00
Joey Robichaud b7ce3c568c Fix parsing SemanticVersion build label from version string (#16608) 2021-12-17 09:39:26 -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
Keith Hill b94dd91e74 Specify exe path as TargetObect for non-zero exit code ErrorRecord (#16108) 2021-10-14 14:47:54 -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 e98a8c8601 Fix '-PipelineVariable' to set variable in the right scope (#16199) 2021-10-07 10:26:21 -07:00
Steve Lee 024f409763 Add isOutputRedirected parameter to GetFormatStyleString() method (#14397) 2021-09-09 11:50:36 -07:00
Aditya Patwardhan 3bb6b2736a Update Ubuntu images to use Ubuntu 20.04 (#15906) 2021-08-30 13:56:52 -07:00
github-actions[bot] d33b223674 Update .NET SDK version from 6.0.100-preview.6.21355.2 to 6.0.100-rc.1.21426.1 (#15648) 2021-08-26 13:07:43 -07:00
Dongbo Wang 403767d7f7 Fix a casting error when using $PSNativeCommandUsesErrorActionPreference (#15993) 2021-08-25 17:05:54 -07:00
Robert Holt a4d14576b3 Make the native command error handling optionally honor ErrorActionPreference (#15897) 2021-08-24 15:27:22 -07:00
Steve Lee a162856af5 Change default to OutputRendering.Host and remove OutputRendering.Automatic (#15882) 2021-08-16 14:17:07 -07:00
Paul Higinbotham 1ec61d955c Remove implicit remoting batch experimental feature (#15863)
It was decided by committee (#15862) to remove this experimental feature. It was an interesting idea but the implementation did not cover important cases, and could not be updated easily to do so.
2021-08-13 08:34:31 +05:00
Steve Lee cced56d75a Make PS-Committee reviewed experimental features stable (#15864) 2021-08-09 14:01:57 -07:00
Steve Lee 2ae0e4d9dd Update ServerRemoteHost Version to be same as PSVersion (#15809) 2021-08-04 15:01:18 -07:00
xtqqczze 055b7f3003 Fix CA1052 for public API to make classes static when they only have static methods (#15775) 2021-07-28 12:28:24 -07:00
Steve Lee 5e15f66f97 Add validation to $PSStyle to reject printable text as ANSI escape sequence (#15825) 2021-07-27 17:14:20 +00:00
Steve Lee b5efe7bc39 Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output (#14406) 2021-07-20 09:02:52 +05:00
xtqqczze 756aef9a86 Fix CA2243: Attribute string literals should parse correctly (#15622)
* Update V2Cmdlets.csv
2021-06-25 17:59:30 +05:00
Robert Holt 7260df7f67 Revert "Temporarily disable Update-Help tests for PackageManagement module (#15661)" (#15662)
This reverts commit d5aa9015bd.
2021-06-25 10:03:45 +05:00
Ilya d5aa9015bd Temporarily disable Update-Help tests for PackageManagement module (#15661) 2021-06-24 11:35:35 -07:00
Steve Lee 375be2e705 Add DetailedView to $ErrorView (#15609) 2021-06-22 13:35:38 -07:00
Steve Lee 9aa9a75cad Fix retrieving dynamic parameters from provider even if globbed path returns no results (#15525) 2021-06-14 11:09:26 -07:00
Andrew 6e73c2d4f6 Remove PSDesiredStateConfiguration v2.0.5 module (#15536)
* No longer include module with PS releases

* Updated assets/wix/files.wxs

* Moving tests out of the ps repo

* Debug 1

* Debug 2
2021-06-09 12:15:46 -07:00
Steve Lee 597bfc9696 Update Concise ErrorView to not show line information for errors from script module functions (#14912) 2021-03-08 23:37:11 +05:00
Steve Lee 6d7fbed02b Suppress Write-Progress in ConsoleHost if output is redirected and fix tests (#14716) 2021-02-08 09:42:53 -08:00