Commit Graph
310 Commits
Author SHA1 Message Date
MartinGC94 c066cd85aa Add ExcludeModule parameter to Get-Command (#18955) 2024-12-31 00:06:28 +05:00
MartinGC94 8cdb728b6b Add completion of modules by their shortname (#20330) 2024-12-28 13:20:26 +05:00
Armaan Mcleod e127345820 Add -PropertyType argument completer for New-ItemProperty (#21117) 2024-12-25 17:27:44 +05:00
Aditya Patwardhan 617dbda8f4 Skip CIM ETS member test on older Windows platforms (#24681) 2024-12-19 10:10:17 -08: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
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
Aditya Patwardhan 9303de597d Bump .NET 9 to 9.0.100-rc.1.24452.12 (#24273) 2024-09-12 12:10:07 -07:00
Travis PlunkandJames Truher [MSFT] c11e4cf0d1 Move to 9.0.0-preview.6.24327.7 (#24133)
---------

Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com>
2024-08-13 10:18:39 -07:00
Dongbo Wang d564d0fff9 Bump to .NET 9 preview 3 (#21782) 2024-05-09 15:36:52 -07:00
Steve Lee 5efd627e91 Expand ~ to $home on Windows with tab completion (#21529) 2024-04-24 16:03:11 -07:00
MartinGC94 a8457f8631 Don't complete parameter name and class member declarations (#21182) 2024-04-15 15:52:37 -07:00
MartinGC94 338d1dcfa1 Fix the regression when doing type inference for $_ (#21223) 2024-02-26 15:11:19 -08:00
James Truher [MSFT] 0919240822 Rewrite the mac syslog tests to make them less flaky (#21174) 2024-02-07 13:09:41 -08:00
Armaan Mcleod 1b98bb0815 Added -Module completion for Save-Help/Update-Help commands (#20678) 2023-12-21 13:06:17 +05:00
Armaan Mcleod 2ad03151f8 Add -Verb argument completer for Start-Process (#20415) 2023-12-19 21:18:04 +05:00
Armaan Mcleod 9383f554a2 Add -Scope argument completer for *-Variable, *-Alias & *-PSDrive commands (#20451) 2023-12-19 14:12:33 +05:00
Armaan Mcleod 0e18be6659 Add -Verb argument completer for Get-Verb/ Get-Command and refactor Get-Verb (#20286) 2023-12-16 21:34:51 +05:00
Dongbo Wang fb1f8e1d43 Bump .NET SDK to 8.0.0 RTM build and move the current preview changelog to 7.4.md (#20850) 2023-12-05 13:22:56 -08:00
Armaan Mcleod 1dc05eaac0 Add argument completer for Set-StrictMode -Version (#20554) 2023-10-24 03:32:25 +00:00
MartinGC94 6176fd3fcf Fix UNC path completion regression (#20419) 2023-10-16 15:43:48 -07:00
Steve Lee a0e6807bb2 Add error if invalid -ExecutionPolicy is passed to pwsh (#20460) 2023-10-16 15:14:11 -07:00
MartinGC94 050873fc28 Prevent fallback to file completion when tab completing type names (#20084) 2023-08-21 10:56:55 -07:00
James Truher [MSFT] 046301b716 Additional test hardening for tests which fail in release pass. (#20093) 2023-08-16 11:28:59 -07:00
James Truher [MSFT] 7b3e5444de Don't use a completion which has a space in it (#20064) 2023-08-01 18:07:37 -07:00
MartinGC94 0502da7109 Fix dynamic parameter completion (#19510) 2023-07-31 17:52:50 -07:00
Ikko Eltociear Ashimine 0beea512eb Fix typo in Logging.Tests.ps1 (#20048) 2023-07-31 10:37:28 -07:00
James Truher [MSFT] 91447e62de Fixes for release tests (#20028) 2023-07-27 15:04:30 -07:00
Travis Plunk 3ce65f39e0 Hide expected error for negative test on windows for script extension (#19929) 2023-07-17 09:32:03 -07:00
MartinGC94 a8ec19b4f6 Fix completion regression for filesystem paths with custom PSDrive names (#19921) 2023-07-11 12:12:32 -07:00
MartinGC94 ac87d2ae0e Add completion for variables assigned by the Data statement (#19831) 2023-07-10 17:15:05 -07:00
MartinGC94 c5cc8c8bbc Fix a null reference crash in completion code (#19916) 2023-07-10 12:31:27 -07:00
MartinGC94 994e43b1bf Fix TabExpansion2 variable leak when completing variables (#18763) 2023-06-19 15:48:59 -07:00
MartinGC94 0cbcf7b4d6 Enable completion of variables across ScriptBlock scopes (#19819) 2023-06-19 13:30:39 -07:00
MartinGC94 8b2de76eff Fix completion of the foreach-statement variable (#19814) 2023-06-19 10:20:13 -07:00
James Truher [MSFT] ba0de3b4fe Add some debugging to the transcript test for SilentlyContinue (#19770) 2023-06-12 17:03:53 -07:00
MartinGC94 79d99b501b Fix member completion for PowerShell Enum class (#19740) 2023-06-05 17:04:19 -07:00
Frode Flaten c57ada217d Filter completion for enum parameter against ValidateRange attributes (#17750) 2023-05-22 14:25:00 -07:00
06ab3b189d Improve path completion (#19489)
* Improve path completion

* Update src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs

Co-authored-by: Steve Lee <slee@microsoft.com>

* Address initial feedback from Steve and Paul

* Apply suggestions from code review

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Apply suggestions from code review

Co-authored-by: Ilya <darpa@yandex.ru>

* Apply suggestions from iSazonov.

* Add missing period to comment.

* Add comment explaining limitations of current approach.

* Correct some escaping issues and add tests

---------

Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>
Co-authored-by: Ilya <darpa@yandex.ru>
2023-05-22 11:10:59 -07:00
MartinGC94 bb3c8a2819 Fix an indexing out of bound error in CompleteInput for empty script input (#19501) 2023-05-10 13:56:33 -07:00
MartinGC94 dc81491870 Improve variable completion performance (#19595) 2023-05-09 15:04:44 -07:00
xtqqczze 19623357ad Remove minor versions from PSCompatibleVersions (#18635) 2023-05-08 12:37:42 -07:00
Staffan Gustafsson 33dc1a8fae Fixing structure typo in test setup (#17458) 2023-05-08 11:56:01 -07:00
xtqqczze c77c286d7a Remove PSv2CompletionCompleter as part of the PowerShell v2 code cleanup (#18337) 2023-05-01 22:00:07 -07:00
MartinGC94 5605b24b08 Improve Hashtable key completion for type constrained variable assignments, nested Hashtables and more (#17660) 2023-05-01 16:26:41 -07:00
Aditya Patwardhan cf6fc53c9f Fix test failures on Windows for time zone and remoting (#19466) 2023-04-25 11:06:34 -07:00
MartinGC94 18f0c5ad4b Exclude redundant parameter aliases from completion results (#19382) 2023-03-22 08:58:15 +05:00
MartinGC94 e6655d1f17 Fix completion for PSCustomObject variable properties (#18682) 2023-03-13 17:38:21 -07:00
Aditya Patwardhan e95f7fb50f Test fixes for stabilizing tests (#19068) 2023-03-13 15:40:27 -07:00
MartinGC94 0a11f799dc Add property assignment completion for enums (#19178)
* Add property assignment completion for enums

* Move method
2023-02-23 13:42:57 -08:00