Commit Graph
298 Commits
Author SHA1 Message Date
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
MartinGC94 290fe28104 Fix class member completion for classes with base types (#19179) 2023-02-22 22:10:22 +05:00
Travis PlunkandAditya Patwardhan b2c4888ebb Add Windows ARM64 CI (#19040)
* Add CI for win-arm64

* Add common function to test for windows arm64

* Update because string where items need investigation

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2023-01-31 12:06:29 -08:00
MartinGC94 232384ce7f Prioritize the default parameter set when completing positional arguments (#18755) 2023-01-09 10:30:42 -08:00
Steve Lee 27b5a0632d Add -ProgressAction common parameter (#18887) 2023-01-09 09:40:40 -08:00
Steve LeeandIlya 9ea887f626 Add -CommandWithArgs parameter to pwsh (#18726)
* Add `-CommandWithArgs` parameter to pwsh

* Update src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs

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

* address Ilya and Mikey's comments

* reset i

Co-authored-by: Ilya <darpa@yandex.ru>
2023-01-05 15:21:35 -08:00
MartinGC94 9a7db33ee0 Add completion for Using keywords (#16514) 2022-12-20 13:26:43 +05:00
Aditya Patwardhan 2b38f80855 Update the release tag in metadata.json for next preview (#18799) 2022-12-15 10:43:55 -08:00
Dongbo Wang 061947969d Allow non-default encodings to be used in user's script/code (#18605) 2022-12-07 10:16:06 +05:00
Steve Lee 8ff6a06f97 Switch $PSNativeCommandUseErrorActionPreference to $true when feature is enabled (#18695) 2022-12-01 16:13:42 -08: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
Dongbo Wang f56c4ea9ef Re-enable building with Ready-to-Run (#18105) 2022-09-15 16:17:23 -07:00
MartinGC94 fb9393e0cc Improve pseudo binding for dynamic parameters (#18030) 2022-09-12 11:34:15 -07:00