Commit Graph
11102 Commits
Author SHA1 Message Date
499cedfaf6 Add build to vPack Pipeline (#25915)
Co-authored-by: Travis Plunk (HE/HIM) <tplunk@ntdev.microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-09-03 14:13:58 -07:00
Anam Navied 1e46d89c63 Add Codeql Suppressions (#25943) 2025-09-03 11:14:44 -07:00
xtqqczze e2b2d1ea59 Ensure .cs files end with exactly one newline (#25968) 2025-09-03 14:09:34 +00:00
xtqqczze 7ef03a14ae Remove obsolete CA2105 rule suppression (#25938) 2025-09-03 03:45:41 +00:00
xtqqczze 176e29ac3a Replace DOTNET_SKIP_FIRST_TIME_EXPERIENCE with DOTNET_NOLOGO (#25946) 2025-09-03 03:44:43 +00:00
Travis Plunk 89af9edb18 Fix typo in CHANGELOG for script filename suggestion (#25962) 2025-09-02 14:29:42 -07:00
xtqqczze 44d366adb2 Remove obsolete CA1703 rule suppression (#25955) 2025-09-02 03:31:08 +00:00
xtqqczze 06ff422d2a Remove obsolete CA2240 rule suppression (#25957) 2025-09-02 03:26:45 +00:00
xtqqczze f455b3b123 Remove obsolete CA1701 rule suppression (#25948) 2025-09-01 04:00:22 +00:00
xtqqczze 3b6f267e19 Remove obsolete CA2233 rule suppression (#25951) 2025-09-01 03:56:16 +00:00
xtqqczze eda56e282e Remove obsolete CA1026 rule suppression (#25934) 2025-08-31 23:20:07 +05:00
xtqqczze 41ecc6847c Remove obsolete CA1059 rule suppression (#25940) 2025-08-31 00:12:14 +05:00
dependabot[bot] 32e877ba40 Bump actions/dependency-review-action from 4.7.2 to 4.7.3 (#25930)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-29 16:45:09 -07:00
Dongbo Wang 53805fb426 Add the parameter Register-ArgumentCompleter -NativeFallback to support registering a cover-all completer for native commands (#25230) 2025-08-29 15:50:02 -07:00
xtqqczze 8d524adf7f Remove obsolete CA2118 rule suppression (#25924) 2025-08-29 10:57:40 +05:00
xtqqczze cf2d7021ab Remove redundant System.Runtime.Versioning attributes (#25926) 2025-08-28 05:54:18 +00:00
Dongbo Wang 44e34f0044 Change the default feedback provider timeout from 300ms to 1000ms (#25910) 2025-08-26 16:06:23 -07:00
Steve LeeandPatrick Meinecke 16aeaba68f Fix stderr output of console host to respect NO_COLOR (#24391)
Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
2025-08-26 16:37:40 -04:00
dependabot[bot] b6e207b75f Bump github/codeql-action from 3.29.10 to 3.29.11 (#25889) 2025-08-25 14:36:57 -07:00
Justin Chung 10a8226f86 Remove AsyncSDL from Pipelines Toggle Official/NonOfficial Runs (#25885) 2025-08-25 10:29:54 -07:00
xtqqczze 5b72eb5200 Seal internal types in Microsoft.PowerShell.Commands.Utility (#25892) 2025-08-25 10:22:20 +05:00
xtqqczze 781c9a5453 Seal internal types in Microsoft.PowerShell.Commands.Management (#25849) 2025-08-22 10:01:07 +05:00
111a8e4b61 Specify .NET Search by Build Type (#25837)
Co-authored-by: Travis Plunk (HE/HIM) <tplunk@ntdev.microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-08-21 10:20:17 -05:00
PowerShell Team Bot 2fb12a31f3 Update PowerShell to use .NET SDK v10-preview.7 (#25876) 2025-08-20 14:38:09 -07:00
dependabot[bot] cae1dc2c5b Bump actions/dependency-review-action from 4.7.1 to 4.7.2 (#25882) 2025-08-20 13:32:57 -07:00
dependabot[bot] b993074fc4 Bump github/codeql-action from 3.29.9 to 3.29.10 (#25881) 2025-08-20 13:32:36 -07:00
Dongbo Wang d68c15e743 Update PATH environment variable for package manager executable on Windows (#25847)
Implementation for PowerShell/PowerShell-RFC#391. A few implementation decisions:

1. Check the package manager list only once per process (**same as CMD**). So, changing the package manager list in registry doesn't affect a PowerShell session that is already running.

2. When detecting user/system PATH value changes, only check new items PREPENDED or APPENDED to the original string (**same as CMD**). The detection is made simple, which is not intended to detect complex changes to the user/system PATH.

3. The PATH update feature is disabled when the `Environment` provider is not available, or when the current session is restricted.
    - Both `Environment` provider and `IsSessionRestricted` are checked only once per PowerShell session.
    - Use `ConditionalWeakTable` to cache whether the feature is enabled or not for a given session.
    - We cannot use `thread-static` variable for the caching because it's possible for Runspace to reuse threads.
2025-08-20 12:53:59 -07:00
Patrick Meinecke c5f2446e69 Suppress false positive PSScriptAnalyzer warnings in tests and build scripts (#25864) 2025-08-19 11:51:38 +05:00
Aditya Patwardhan b90f382100 Change the macos runner image to macos 15 large (#25867) 2025-08-15 20:10:14 +00:00
dependabot[bot] daacfe74e9 Bump actions/checkout from 4 to 5 (#25853) 2025-08-13 20:49:54 -07:00
dependabot[bot] 3f24ae61d2 Bump github/codeql-action from 3.29.7 to 3.29.9 (#25857) 2025-08-13 20:49:42 -07:00
Dongbo Wang f4a452ea3c Update PSRP protocol to deprecate session key exchange between newer client and server (#25774) 2025-08-06 22:54:11 +00:00
PowerShell Team Bot 5de50164c9 Update to .NET 10 Preview 6 (#25828) 2025-08-06 22:28:13 +00:00
dependabot[bot] e7655cfb27 Bump agrc/create-reminder-action from 1.1.20 to 1.1.22 (#25808) 2025-08-04 23:02:09 -07:00
dependabot[bot] b2938266e3 Bump agrc/reminder-action from 1.0.17 to 1.0.18 (#25807) 2025-08-04 23:01:46 -07:00
dependabot[bot] dbcaabecfd Bump github/codeql-action from 3.28.19 to 3.29.5 (#25797) 2025-08-04 23:01:31 -07:00
dependabot[bot] 5a222b3ee4 Bump super-linter/super-linter from 7.4.0 to 8.0.0 (#25770) 2025-08-04 16:45:16 -07:00
Jordan Borean 8dd0d2acf8 Fix the ssh PATH check in SSHConnectionInfo when the default Runspace is not available (#25780) 2025-08-04 16:37:45 -07:00
Steve Lee 65b899c3a9 Fix Write-Host to respect OutputRendering = PlainText (#21188) 2025-08-04 16:31:59 -07:00
Jordan Borean 4415386172 Improve the $using expression support in Invoke-Command (#24025)
Always use the v5.1 `$using:` logic when dealing with any connection type that is not based on the `WSManConnectionInfo`. This allows the caller to use the more advanced `$using` features like variables with special names, having `$using` vars inside sub scopes, and more. `WSMan` based connections might still communicate with older versions but as the oldest supported version is v3 on Server 2012. We don't need to keep the default as v2 (which has been deprecated) to support some of the newer features.
2025-08-04 16:31:30 -07:00
Aditya Patwardhan 07dfab2277 Fix updatable help test for new content (#25819) 2025-08-04 14:04:56 -07:00
Stéphane BARIZIEN a993992298 Adding hex format for native command exit codes (#21067) 2025-07-31 08:23:20 +05:00
Jordan Borean 11eeae97f0 Use parameter HelpMessage for tool tip in parameter completion (#25108)
Use the help message on the parameter in the completion tool tip to provide better completion help. This can be utilized by other tools to provide more context for a parameter outside of the current type and parameter name which is quite minimal.
2025-07-30 12:05:13 -07:00
Dongbo Wang b801027560 Revert "Never load a module targeting the PSReadLine module's SessionState" (#25792)
The change causes nested modules of PSReadLine to be loaded to global session state as well.

It's possible to check if we are currently importing the PSReadLine module but the check would depend on the current design of the PSReadLine module, such as how many nested modules it has, its module type, and etc., which is fragile. It's safer to just revert the change.
2025-07-29 14:32:21 -07:00
Jordan BoreanandPatrick Meinecke ce76ae1def Fix debug tracing error with magic extents (#25726)
Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
2025-07-15 13:42:09 -04:00
Jordan Borean c6329ddd54 Add MethodInvocation trace for overload tracing (#21320) 2025-07-14 15:42:14 -07:00
MartinGC94 21f88b50f4 Fix infinite loop crash in variable type inference (#25696) 2025-06-30 16:22:49 -04:00
Patrick Meinecke eb7d6c191d Update metadata for v7.5.2 and v7.4.11 releases (#25687) 2025-06-26 12:58:40 -04:00
Patrick Meinecke 84fd4d2dcc Update CHANGELOG for v7.5.2 (#25668) 2025-06-24 12:44:43 -04:00
Patrick Meinecke 4be49cc888 Update CHANGELOG for v7.4.11 (#25667) 2025-06-24 12:44:18 -04:00