246 Commits
Author SHA1 Message Date
Travis PlunkandMartinGC94 fb46702bbc Fix issue when completing the first command in a script with an empty array expression (#18355) (#18630)
Co-authored-by: MartinGC94 <42123497+MartinGC94@users.noreply.github.com>
2022-11-21 10:25:06 -08:00
github-actions[bot] 4b0b4ff4eb [release/v7.3.0-rc.1] Re-enable building with Ready-to-Run (#18107) 2022-09-15 17:42:37 -07:00
Aditya Patwardhan f5a725cfc6 Backport of 'Fix error formatting to use color defined in $PSStyle.Formatting' (#18086) 2022-09-14 14:44:22 -07:00
Dongbo Wang c2323db4a0 Re-enable tests because the corresponding dotnet issues were fixed (#17839) 2022-08-03 21:34:03 -07:00
Dongbo Wang 2051c5f72b Stop referencing Microsoft.PowerShell.Security when the core snapin is used (#17771) 2022-08-01 10:10:59 -07:00
Ilya 08e4596463 Move the type data definition of System.Security.AccessControl.ObjectSecurity to the Microsoft.PowerShell.Security module (#16355) 2022-07-25 21:16:52 -07:00
MartinGC94 8eb37cc44d Prevent braces from being removed when completing variables (#17751) 2022-07-25 11:17:26 -07:00
MartinGC94 76c713d7e6 Add completion for index expressions for dictionaries (#17619) 2022-07-20 03:56:35 +00:00
MartinGC94 618b348cdb Fix type completion for attribute tokens (#17484) 2022-07-19 09:08:10 -07:00
MartinGC94 53adf5d5d4 Improve dynamic parameter tab completion (#17661) 2022-07-18 15:32:06 -07:00
MartinGC94 b06bcee10e Avoid binding positional parameters when completing parameter in front of value (#17693) 2022-07-18 14:28:04 -07:00
MartinGC94 81f492744d Fix tab completion regression (#17628) 2022-07-07 15:45:50 +05:00
Tamás Vajk b88cd3ae2e Fix build.psm1 to not specify both version and quality for dotnet-install (#17589) 2022-06-28 11:00:34 -07:00
github-actions[bot] cfc237ac85 Update .NET SDK version from 7.0.100-preview.4.22252.9 to 7.0.100-preview.5.22307.18 (#17402) 2022-06-13 13:09:30 -07:00
MartinGC94 4f6e574820 Improve type inference and completions (#16963) 2022-06-13 10:04:35 -07:00
MartinGC94 12a2c82d0e Fix various completion issues inside the param block (#17489) 2022-06-09 09:41:52 +05:00
MartinGC94 042765dd1c Improve completion on operators (#17486) 2022-06-06 14:28:04 -07:00
Matt Gucci 69831c15ba Improve array element completion for command arguments (#17078) 2022-06-06 12:23:16 -07:00
Patrick Meinecke 97e8e0c43a Use AST extent for PSScriptRoot path completion (#17376) 2022-06-06 10:33:52 -07:00
Shuangchi He c5d31c9e10 Correct spelling in Comments and tests (#17480) 2022-06-06 09:55:33 -07:00
Stéphane BARIZIEN 4acf6b39d4 Support forward slashes in network share (UNC path) completion (#17111) (#17117) 2022-04-12 21:00:16 +05:00
Paul Higinbotham 6d4c56657b Skip failing scriptblock tests (#17093) 2022-03-31 12:24:58 -07:00
MartinGC94 c904d7f376 Improve member auto completion (#16504) 2022-03-24 15:55:27 -07:00
MartinGC94 123373e425 Prioritize ValidateSet completions over Enums for parameters (#15257) 2022-03-23 12:38:05 -07:00
Aditya Patwardhan 1268a0a04f Update .NET to 7.0.0-preview.2 build (#16930) 2022-03-18 09:10:53 -07:00
MartinGC94 c196e2f793 Improve Hashtable completion in multiple scenarios (#16498) 2022-03-03 18:09:12 -08:00
Aditya Patwardhan 77caf718cd Update projects and scripts to use .NET 7 preview 1 pre-release builds (#16856)
* Update script to consume .NET 7 builds

* Update target framework

* Add dotnet metadata override value

* Update dependencies

* Update analyzer

* Conditionally add output argument

* Update files.wxs

* Fix tests

* Update Microsoft.PowerShell.Native to 7.3.0-preview.1

* Disable psget tests

* Update to latest build for .NET 7 preview 1

* Disable ready to run

* Update version of `Microsoft.AspNetCore.Mvc.NewtonsoftJson` package

* Update cgmanifest and startup test
2022-02-16 09:56:41 -08:00
ayousuf23andDongbo Wang a9a235d469 Prevent tab completion if the word to complete is a single dash (#16781)
* added code to prevent tab completion if the word to complete is a single dash

* added a test for testing tab completion if the word to complete is a single dash

* Minor update and add comment

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2022-02-09 12:59:29 -08:00
MartinGC94 7d3260fe0d Add completion for loop labels after Break/Continue (#16438)
Adds completion for loop labels after labeled control flow statements such as Break and Continue.
The completion will look for any loops with a label that surrounds the Break/Continue keywords.
The tooltips for the completion entries shows the relevant loop.
2022-02-01 09:14:23 +05:00
Joel Sallow (/u/ta11ow) 8c53252969 Add support to allow invoking method with generic type arguments (#12412) 2022-01-27 09:55:54 -08:00
Keith Hill e2f39fa0eb Reduce the amount of startup banner text (#16516) 2022-01-10 15:08:00 -08:00
Andrew Menagarishvili 3f1c03d494 Merged PR 18449: Change default for $PSStyle.OutputRendering to Ansi
Cherry picked from !18333

Cherry-picked from commit `5cb8a2b3`.
2021-12-16 13:39:56 -08:00
Dongbo Wang 88ba3f61fa Use the same temporary home directory when 'HOME' env variable is not set (#16263) 2021-11-22 10:44:58 -08:00
MartinGC94 965dc8f40f Fix tab completion within the script block specified for the ValidateScriptAttribute. (#14550) 2021-11-09 18:26:14 -08:00
Aditya Patwardhan f8d6b2f9fe Update metadata.json in preparation on 7.3.0-preview.1 release (#16406)
* Update `metadata.json` in preparation on `7.3.0-preview.1` release

* Update PSVersion table and tests
2021-11-09 08:31:01 -08:00
Maksim Ivanyuk 674ef888a2 Add -HttpVersion parameter to web cmdlets (#15853) 2021-11-02 16:53:36 -07:00
Steve Lee cced56d75a Make PS-Committee reviewed experimental features stable (#15864) 2021-08-09 14:01:57 -07:00
6933c5b473 Only allow -File to accept .ps1 scripts on Windows (#15859)
Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>
2021-08-03 13:43:00 -07:00
James Truher [MSFT] 881f31b4b3 Harden logic when looking for syslog entries to be sure that we select based on PID (#15841) 2021-07-30 10:10:33 +05:00
James Truher [MSFT] ac762c1cce Add a Windows mode for native commands that allows some commands to use legacy argument passing (#15408) 2021-07-20 23:10:04 +00:00
Steve Lee b5efe7bc39 Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output (#14406) 2021-07-20 09:02:52 +05:00
Aditya Patwardhan 31a4528302 Update to .NET 6 Preview 6 and use crossgen2 (#15763) 2021-07-19 16:06:39 -07:00
Ilya 0f3bc73d9a Implement a completion for View parameter of format cmdlets (#14513) 2021-07-13 17:32:48 +00:00
MartinGC94 77054ff586 Fix splatting being treated as positional parameter (#14623) 2021-06-15 16:56:14 -07:00
Francesco Saltori a70f915411 Retrieve ProductVersion using informational version attribute in AmsiUtils.Init() (#15527) 2021-06-14 12:04:36 -07:00
MartinGC94 2fc3826dd3 Add completions for comment-based help keywords (#15337) 2021-05-25 13:36:53 -07:00
MartinGC94 5d8336adf5 Fix tab completion for un-localized about topics (#15265) 2021-05-05 11:24:40 -07:00
MartinGC94 55d12ee76c Add completion for Requires statements (#14596) 2021-04-14 10:26:48 -07:00
Aditya Patwardhan 4a7bea0082 Update .NET to 6.0.0-preview.3 (#15221) 2021-04-13 15:45:15 -07:00
Steve Lee 2f3f39906f resolve merge conflict (#14969) 2021-04-12 20:11:50 -07:00