Commit Graph
2174 Commits
Author SHA1 Message Date
Steve Lee c740a07e10 Change public API mention of monad to PowerShell (#18491)
* Change public API mention of `monad` to PowerShell

* looks like I forgot to save changes in some files
2022-11-14 12:45:23 -05:00
Ilya b84652745c Replace DllImport with LibraryImport in SMA 1 (#18520) 2022-11-12 16:48:27 +05:00
Steve Lee 9f459c05f6 Replace DllImport with LibraryImport in engine (#18496) 2022-11-10 08:24:11 +05:00
Travis Plunk 665bf21fcb Bump to use internal .NET 7 GA build (#18508) 2022-11-09 22:51:24 +00:00
Patrick Meinecke 74aa257839 Skip cloud files marked as "not on disk" during command discovery (#18152) 2022-11-08 14:37:29 -08:00
Steve Lee 837482376e Replace msh in public API comment based documentation with PowerShell equivalent (#18483) 2022-11-08 08:27:52 +05:00
MartinGC94 0a6de4672a Fix issue when completing the first command in a script with an empty array expression (#18355) 2022-11-07 17:14:49 -08:00
MartinGC94 b5ffd043c5 Improve type inference of hashtable keys (#17907) 2022-11-07 17:10:03 -08:00
Steve Lee 0ddf89e5a8 Fix Switch-Process to copy the current env to the new process (#18452) 2022-11-07 11:03:37 -08:00
xtqqczze 1688b0fc35 Replace UTF8Encoding(false) with Encoding.Default (#18356) 2022-11-07 10:07:36 -08:00
Steve Lee a2ee05400f Fix Switch-Process to set termios appropriate for child process (#18467) 2022-11-04 15:12:09 -07:00
Dongbo Wang db21524d23 Add missing XML doc elements for methods in RunspaceFactory (#18450) 2022-11-03 11:44:46 -07:00
Ikko Ashimine 455d29471c Fix typo in InitialSessionState.cs (#18435)
controling -> controlling
2022-11-03 11:01:13 +05:00
Steve Lee 52a62e9ef2 Fix Switch-Process error to include the command that is not found (#18443) 2022-11-03 07:54:11 +05:00
Steve Lee 3e1a4d5679 Remove remaining unused strings from resx files (#18448) 2022-11-03 07:52:46 +05:00
Berkan Diler c16521ac87 Use new LINQ Order() methods instead of OrderBy(static x => x) (#18395)
Less code, a bit faster, less allocations
2022-11-01 13:31:58 +05:00
Berkan Diler 8619d8432f Make use of StringSplitOptions.TrimEntries when possible (#18412) 2022-10-31 22:20:22 +05:00
Berkan Diler 9016adf1c2 Replace some string.Join(string) calls with string.Join(char) (#18411) 2022-10-31 09:56:15 -07:00
dependabot[bot] 8b957f8673 Bump Microsoft.PowerShell.Native from 7.3.0-rc.1 to 7.3.0 (#18405) 2022-10-28 09:19:32 -07:00
Steve Lee ae3f5f0f64 Remove unused strings from FileSystem and Registry providers (#18403) 2022-10-28 08:18:36 +05:00
Ilya 8965af3d52 Remove some static constants from Utils.Separators (#18154) 2022-10-27 15:25:41 -07:00
xtqqczze dd884459c1 Use generic GetValues<T>, GetNames<T> enum methods (#18391) 2022-10-27 09:42:33 -07:00
Steve Lee 6c4f27eec1 Remove unused resource strings from SessionStateStrings (#18394) 2022-10-27 09:36:11 -07:00
Steve Lee 0ede377311 Remove unused resource strings in System.Management.Automation (#18388) 2022-10-26 11:04:44 -07:00
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