Title: `$true/$false` get tagged as parameters in completion results when used in a parameter attribute · Issue #18688 · PowerShell/PowerShell · GitHub
Open Graph Title: `$true/$false` get tagged as parameters in completion results when used in a parameter attribute · Issue #18688 · PowerShell/PowerShell
X Title: `$true/$false` get tagged as parameters in completion results when used in a parameter attribute · Issue #18688 · PowerShell/PowerShell
Description: Steps to reproduce $script = '[CmdletBinding()] param( # Parameter help description [Parameter(Mandatory = $false)] [ParameterType] $ParameterName ) $false' TabExpansion2 -inputScript $script -cursorColumn $script.Length | % CompletionMa...
Open Graph Description: Steps to reproduce $script = '[CmdletBinding()] param( # Parameter help description [Parameter(Mandatory = $false)] [ParameterType] $ParameterName ) $false' TabExpansion2 -inputScript $script -curs...
X Description: Steps to reproduce $script = '[CmdletBinding()] param( # Parameter help description [Parameter(Mandatory = $false)] [ParameterType] $ParameterName ) $false' TabExpansion2 -inputScript $scri...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/18688
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`$true/$false` get tagged as parameters in completion results when used in a parameter attribute","articleBody":"### Steps to reproduce\r\n\r\n```powershell\r\n$script = '[CmdletBinding()]\r\nparam(\r\n # Parameter help description\r\n [Parameter(Mandatory = $false)]\r\n [ParameterType]\r\n $ParameterName\r\n)\r\n\r\n$false'\r\n\r\nTabExpansion2 -inputScript $script -cursorColumn $script.Length | % CompletionMatches\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\n```console\r\nCompletionText ListItemText ResultType ToolTip\r\n-------------- ------------ ---------- -------\r\n$false false Variable [bool]$false\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nCompletionText ListItemText ResultType ToolTip\r\n-------------- ------------ ---------- -------\r\n$false false Variable [ParameterType]$false\r\n```\r\n\r\n\r\n### Error details\r\n\r\n_No response_\r\n\r\n### Environment data\r\n\r\n```powershell\r\nName Value\r\n---- -----\r\nPSVersion 7.3.0\r\nPSEdition Core\r\nGitCommitId 7.3.0\r\nOS Microsoft Windows 10.0.22621\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/SeeminglyScience","@type":"Person","name":"SeeminglyScience"},"datePublished":"2022-11-30T18:17:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/18688/PowerShell/issues/18688"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a484ed76-ffab-aa0f-a7d7-f98745aeb9d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CAB4:3A04D8:BDCEA1:113844B:6A574AC2 |
| html-safe-nonce | fdd92735066be69cfce442997239fa022e45da8739d0f68916c4fadb8b472926 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUI0OjNBMDREODpCRENFQTE6MTEzODQ0Qjo2QTU3NEFDMiIsInZpc2l0b3JfaWQiOiI1NzA0NzQ1MDgyMzk1NTExNDkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7226e12c91e2ebbeafca8839fd46998cc2cce8cd3b9e3e62750203502f428fd6 |
| hovercard-subject-tag | issue:1470044018 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/18688/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9739fcd3c30deb6171c0f6fd0d3184e43c3bc86e2d1af05010248cc6b6ec7f4/PowerShell/PowerShell/issues/18688 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9739fcd3c30deb6171c0f6fd0d3184e43c3bc86e2d1af05010248cc6b6ec7f4/PowerShell/PowerShell/issues/18688 |
| og:image:alt | Steps to reproduce $script = '[CmdletBinding()] param( # Parameter help description [Parameter(Mandatory = $false)] [ParameterType] $ParameterName ) $false' TabExpansion2 -inputScript $script -curs... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SeeminglyScience |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width