Commit Graph
2150 Commits
Author SHA1 Message Date
Dongbo Wang 8b82fa3597 Avoid using regex when unnecessary in ScriptWriter (#18348) 2022-10-26 09:50:26 -07:00
xtqqczze e2d13c8efa Use Enum.HasFlags part 1 (#18386) 2022-10-26 08:46:00 -07:00
Steve Lee 70a0a27f55 Remove unused strings from parser (#18383) 2022-10-26 08:01:33 +05:00
Olivia eef7c4526e Add the function cd~ (#18308) 2022-10-24 21:58:54 -07:00
Steve Lee 7cae30de39 Remove unused strings from ConsoleInfoErrorStrings.resx (#18367) 2022-10-24 14:58:51 -07:00
MartinGC94 ab7f206271 Fix type inference error for empty return statements (#18351) 2022-10-24 14:39:34 -07:00
Ilya ece26bcf11 Remove FusionAssemblyIdentity and GlobalAssemblyCache as they are not used (#18334) 2022-10-24 12:16:22 -07:00
Dongbo Wang 53c3690c2a Replace command-error suggestion with new implementation based on subsystem plugin (#18252) 2022-10-24 11:59:32 -07:00
xtqqczze 152887154e Remove some static initializations in StringManipulationHelper (#18243) 2022-10-19 14:18:24 -07:00
xtqqczze c1e6b41f98 Use MemoryExtensions.IndexOfAny in PSv2CompletionCompleter` (#18245) 2022-10-19 14:18:09 -07:00
xtqqczze b7f61ca50c Use MemoryExtensions.IndexOfAny in WildcardPattern (#18242) 2022-10-19 10:07:09 +05:00
Aditya Patwardhan 028eeb0457 Bump to .NET 7 to version 7.0.100-rc.2.22477.20 (#18286) 2022-10-18 16:49:18 -07:00
Dongbo Wang 01948aedb6 Remove the ProcessorArchitecture portion from the full name as it's obsolete (#18320) 2022-10-18 11:52:06 -07:00
Dongbo Wang bc1f3691f2 Make the fuzzy searching flexible by passing in the fuzzy matcher (#18270) 2022-10-17 16:40:54 -07:00
Ikko Ashimine 1228ebc1f5 Fix typo in RemoteRunspacePoolInternal.cs (#18263) 2022-10-13 16:44:10 -07:00
Steve Lee 8a45d14fad Add -FuzzyMinimumDistance parameter to Get-Command (#18261) 2022-10-12 16:08:20 -07:00
Ilya dd3a6a10d4 Use source generator for PSVersionInfo to improve startup time (#15603) 2022-10-11 11:50:16 -07:00
Dongbo Wang 80d2fb7e47 Some more code cleanup related to the use of PSVersionInfo (#18231) 2022-10-11 10:24:31 -07:00
xtqqczze ed1f757728 Use MemoryExtensions.IndexOfAny in SessionStateInternal (#18244)
* Use `IndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)`.
* Avoid unnecessary static initialization of `s_charactersInvalidInDriveName` field.
* Refactored `do ...  while(false)` loop.

cc: @daxian-dbw, @iSazonov
2022-10-11 08:47:59 -07:00
Steve Lee 667e75559d On Unix, only explicitly terminate the native process if not in background (#18215) 2022-10-07 08:07:22 +05:00
Dongbo Wang 7073525059 Avoid using Regex when not necessary (#18210) 2022-10-06 15:26:22 -07:00
Dongbo Wang 0e4358cf93 Improve startup time by triggering initialization of additional types on background thread (#18195) 2022-10-04 10:17:09 -07:00
dependabot[bot] fd94bea229 Bump Microsoft.PowerShell.Native from 7.3.0-preview.1 to 7.3.0-rc.1 (#18217) 2022-10-04 06:31:11 -07:00
Steve Lee d5ed53eba2 Add CustomTableHeaderLabel formatting to differentiate table header labels that are not property names (#17346) 2022-10-03 15:05:11 -07:00
Aditya Patwardhan f67655d96c Update to use ComputeCore.dll for PowerShell Direct (#18194) 2022-10-03 10:36:12 -07:00
Dongbo Wang a7a49290a8 Remove the extra new line form List formatting (#18185) 2022-09-30 15:47:51 -07:00
Dongbo Wang 618d1a7c78 Minor update to the FileInfo table formatting on Unix to make it more concise (#18183) 2022-09-29 16:22:53 -07:00
Ilya 8973b0c121 Use overload APIs that take char instead of string when it's possible (#18179) 2022-09-29 09:39:04 -07:00
Jordan Borean d66b2a5b52 Fix Parent property on processes with complex name (#17545) 2022-09-28 21:43:40 -07:00
xtqqczze fd67038ed8 Replace UTF8Encoding(false) with Encoding.Default (#18144) 2022-09-27 10:47:55 +05:00
Dongbo Wang 79b8140199 Make PowerShell class not affiliate with Runspace when declaring the NoRunspaceAffinity attribute (#18138) 2022-09-22 10:49:08 -07:00
Christoph Bergmeister d3d81c3e44 Display download progress in human readable format for Invoke-WebRequest (#14611) 2022-09-19 11:16:21 -07:00
Dongbo Wang 1a82574743 Treat [NullString]::Value as the string type when resolving methods (#18080) 2022-09-15 17:35:56 -07:00
Aditya Patwardhan 29ddf44892 Update DotnetRuntimeMetadata.json for .NET 7 RC1 build (#18091) 2022-09-15 14:12:52 -07:00
Steve Lee 944ed5413d Revert "Add -StrictMode to Invoke-Command to allow specifying strict mode when invoking command locally" (#18040) 2022-09-12 11:41:57 -07:00
MartinGC94 fb9393e0cc Improve pseudo binding for dynamic parameters (#18030) 2022-09-12 11:34:15 -07:00
Steve Lee 61b5dceb60 Make experimental feature PSAnsiRenderingFileInfo stable (#18042) 2022-09-12 10:23:03 -07:00
Steve Lee 6744ffb826 Make experimental feature PSNativeCommandArgumentPassing stable (#18044) 2022-09-12 09:48:09 -07:00
Steve Lee ce746969ab Make experimental feature PSAMSIMethodInvocationLogging stable (#18041) 2022-09-12 09:20:20 -07:00
Dongbo Wang 3fbd90a4b0 Handle PSObject argument specially in method invocation logging (#18060) 2022-09-12 09:15:14 -07:00
Ikko Ashimine eb92c501da Fix typos in EventResource.resx (#18063) 2022-09-12 09:13:28 -07:00
Steve Lee 3bf6423a10 Make experimental feature PSRemotingSSHTransportErrorHandling stable (#18046) 2022-09-07 17:34:30 -07:00
Steve Lee 918bb8c952 Make experimental feature PSExec stable (#18045) 2022-09-07 10:28:17 -07:00
Steve Lee 6e36446b6f Make experimental feature PSCleanBlock stable (#18043) 2022-09-07 10:26:21 -07:00
Dongbo Wang 647f40bb4a Fix error formatting to use color defined in $PSStyle.Formatting (#17987) 2022-08-31 09:36:14 -07:00
Dongbo Wang 543f5209c0 Support mapping foreground/background ConsoleColor values to VT escape sequences (#17938) 2022-08-24 23:11:18 +05:00
MartinGC94 4051e09796 Add completion for values in comparisons when comparing Enums (#17654) 2022-08-22 15:18:49 -07:00
MartinGC94 99c757ff3e Fix positional argument completion (#17796) 2022-08-22 15:17:55 -07:00
MartinGC94 1c5e14cf0f Fix member completion in attribute argument (#17902) 2022-08-22 13:38:21 -07:00
Frode Flaten a15bfcb501 Throw when too many parameter sets are defined (#17881) 2022-08-22 12:11:17 -07:00