Commit Graph
4997 Commits
Author SHA1 Message Date
crazyjncsu 14fb6f2618 Fix PSMethodInvocationConstraints.GetHashCode method (#24965)
There is a difference between GetHashCode for array object itself and cumulative GetHashCode based on hashes of the array members.
2025-02-13 09:31:05 +05:00
PowerShell Team BotandTravis Plunk 6d6515b7e4 Update branch for release - Transitive - false - none (#24995)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-02-12 12:21:42 -06:00
Armaan Mcleod 0f7ba437eb Add completion single/double quote support for -Noun parameter (#24977) 2025-02-11 14:20:19 +05:00
MartinGC94 9941e38c19 Remove trailing space from event source name (#24192) 2025-02-11 09:24:36 +05:00
Matěj Kafka 9071eac574 Stringify ErrorRecord with empty exception message to empty string (#24949) 2025-02-10 11:43:10 +05:00
xtqqczze 57bdd9c686 Fix RunspacePool, RunspacePoolInternal and RemoteRunspacePoolInternal IDisposable implementation (#24720) 2025-02-10 10:34:41 +05:00
Armaan Mcleod b385e5406c Add completion single/double quote support for -PSEdition parameter (#24971) 2025-02-08 18:29:15 +05:00
Kris Borowinski 8854c00ec2 Fix New-Item -Force to error on invalid directory name (#24936) 2025-02-07 22:32:23 +05:00
Kris Borowinski 0beb24e10f Fix Start-Transcript error when $Transcript is a PSObject wrapped string (#24963) 2025-02-07 22:23:05 +05:00
xtqqczze 1790f3a3e9 Remove redundant Attribute suffix (#24940) 2025-02-07 22:18:29 +05:00
Sean Wheeler f84c777b72 Fix formatting of the XML comment for SteppablePipeline.Clean() (#24941) 2025-02-04 09:37:22 -08:00
Flavien MICHALECZEK 141da816ab Use Environment.ProcessId in SpecialVariables.PID (#24926) 2025-02-04 17:07:01 +05:00
Armaan Mcleod ed982b4338 Replace char[] array in CompletionRequiresQuotes with cached SearchValues<char> (#24907) 2025-02-01 21:17:42 +05:00
Armaan Mcleod 459fc8d285 Add quote handling in Verb, StrictModeVersion, Scope & PropertyType Argument Completers with single helper method (#24839) 2025-02-01 14:52:52 +05:00
Armaan Mcleod 2a1d17eda6 Update IndexOfAny calls with invalid path/filename to SearchValues<char> for more efficient char searching (#24896) 2025-01-30 17:42:57 +05:00
Jordan Borean 4e7942135f Fix Start-Process -Wait polling (#24711) 2025-01-28 13:52:48 +05:00
Armaan Mcleod bca20334c7 Convert InvalidCommandNameCharacters in AnalysisCache to SearchValues<char> for more efficient char searching (#24880) 2025-01-28 10:33:26 +05:00
Armaan Mcleod c1abc73def Convert s_charactersRequiringQuotes in Completion Completers to SearchValues<char> for more efficient char searching (#24879) 2025-01-28 10:29:29 +05:00
xtqqczze 2e97dd4d5a Seal internal types in PlatformInvokes (#24826) 2025-01-20 10:27:21 +05:00
PowerShell Team BotandAditya Patwardhan 9935033b0f Update outdated package references (#24758)
* Update package references

* Update cgmanifest

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2025-01-16 20:55:30 +00:00
Anam Navied af55292ca7 Update Microsoft.PowerShell.PSResourceGet to 1.1.0 (#24767) 2025-01-13 16:13:45 -08:00
Steven Bucher 16e81a60b1 Add the AIShell module to telemetry collection list (#24747) 2025-01-07 10:50:31 -08:00
PowerShell Team Bot e7311eb08c Update outdated package references (#24580) 2025-01-06 14:03:20 -08:00
Frode Flaten c0d7fb787f Add helper in EnumSingleTypeConverter to get enum names as array (#17785) 2025-01-03 01:08:23 +05:00
Ryan Yates 61e9f5dcc2 Return correct FileName property for Get-Item when listing alternate data streams (#18019) 2025-01-02 16:45:57 +05:00
MartinGC94 c066cd85aa Add ExcludeModule parameter to Get-Command (#18955) 2024-12-31 00:06:28 +05:00
MartinGC94 57dbde625f Update Named and Statement block type inference to not consider AssignmentStatements and Increment/decrement operators as part of their output (#21137) 2024-12-29 17:29:03 +05:00
Armaan Mcleod 10d1785030 Update DnsNameList for X509Certificate2 to use X509SubjectAlternativeNameExtension.EnumerateDnsNames Method (#24714) 2024-12-29 15:21:50 +05:00
MartinGC94 8cdb728b6b Add completion of modules by their shortname (#20330) 2024-12-28 13:20:26 +05:00
xtqqczze b74e708cb5 Seal ClientRemoteSessionDSHandlerImpl (#21218)
The motivation of this PR is this comment by @PaulHigin https://github.com/PowerShell/PowerShell/pull/11820#discussion_r452405592_.

_Contributes to #15110._
2024-12-28 08:25:21 +05:00
Armaan Mcleod b5fbe9e613 Fix Get-ItemProperty to report non-terminating error for cast exception (#21115) 2024-12-27 09:09:32 +05:00
Armaan Mcleod e127345820 Add -PropertyType argument completer for New-ItemProperty (#21117) 2024-12-25 17:27:44 +05:00
xtqqczze 8017195541 Seal internal type ClientRemoteSessionDSHandlerImpl (#24705)
* Seal internal type `ClientRemoteSessionDSHandlerImpl`

* Fix `CS0628: new protected member declared in sealed type`
2024-12-25 09:08:51 +05:00
xtqqczze b0fbfb74ce Seal classes in RemotingProtocol2 (#21164) 2024-12-24 11:25:08 +05:00
Brendan Burns 90b0149805 Fix a bug in how Write-Host handles XmlNode object (#24669) 2024-12-13 10:24:02 -08:00
MartinGC94 e489cec604 Remove Regex use 2024-12-12 11:17:44 -05:00
MartinGC94 1452374fbf Improve cim ETS member inference completion 2024-12-12 11:17:44 -05:00
Jordan Borean 7cc8a9ad32 Emit ProgressRecord in CLIXML minishell output
Instead of never emitting a ProgressRecord if stdout is redirected, continue to emit the CLIXML serialized record when pwsh was started with -OutputFormat xml regardless of redirection. This allows calling processes to receive the progress record from the spawned process when it captures the output.
2024-12-11 20:22:43 -05:00
Patrick Meinecke 36740ab4a2 Assign the value returned by the MaybeAdd method 2024-12-11 15:31:04 -05:00
Jordan Borean 294adb47f1 Add support for interface static abstract props
Add support for writing a PowerShell class that can implement an
interface that contains a static abstract property introduced in C# 11.
2024-12-10 14:02:11 -05:00
Jordan Borean 06e2093e8c Change call to optional add in the binder expression 2024-12-09 14:35:05 -05:00
Jordan Borean 89921dd500 Turn off AMSI member invocation on nix release builds
Turn off the AMSI member invocation logging for non-Windows release
builds. This is slightly more efficient as there's no extra work to
create the AMSI string.
2024-12-09 14:35:05 -05:00
Jordan Borean 1e07bd0cb5 Add error for Get-PSSession -ComputerName on Unix (#21009) 2024-12-05 16:26:57 +05:00
Jordan BoreanandIlya 8aea111930 Update src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
Co-authored-by: Ilya <darpa@yandex.ru>
2024-12-04 11:13:47 -05:00
Jordan BoreanandIlya ad8d13b2ac Apply suggestions from code review
Co-authored-by: Ilya <darpa@yandex.ru>
2024-12-04 11:13:47 -05:00
Jordan Borean 82341b0e3b Add remote runspace check for PushRunspace
Add explicit exception when attempting to call PushRunspace on a
runspace that is not remote. Instead of failing with a hard to
understand NullReferenceException an ArgumentException is raised with
information about what went wrong.
2024-12-04 11:13:47 -05:00
Matej Kafka b18eacaa83 Resolve symbolic link target relative to the symbolic link instead of the working directory (#15235) (#20943) 2024-12-03 15:00:00 -08:00
Jordan Borean 22beba4a47 Fix up buffer management getting network roots (#24600)
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
2024-11-26 11:59:34 +05:00
xtqqczze 060cbe3412 Set LangVersion compiler option to 13.0 (#24617) 2024-11-26 08:44:05 +05:00
Sean Wheeler a2b2d7e704 Update HelpInfoUri for 7.5 (#24610) 2024-11-22 09:58:44 -08:00