Title: Tab-completion doesn't honor the provider context provided by a previous argument when surfacing dynamic parameters · Issue #19498 · PowerShell/PowerShell · GitHub
Open Graph Title: Tab-completion doesn't honor the provider context provided by a previous argument when surfacing dynamic parameters · Issue #19498 · PowerShell/PowerShell
X Title: Tab-completion doesn't honor the provider context provided by a previous argument when surfacing dynamic parameters · Issue #19498 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19498
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tab-completion doesn't honor the provider context provided by a previous argument when surfacing dynamic parameters","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\n\r\n```powershell\r\nPush-Location function: # change to a non-file-system location\r\n(TabExpansion2 'Get-ChildItem -LiteralPath $PSHOME -Fi').CompletionMatches.ListItemText\r\nPop-Location\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\n```console\r\nFilter\r\nFile\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nFilter\r\n```\r\n\r\nThat is, even though the file-system provider is implied by the `-LiteralPath` argument, tab-completing `-Fi` didn't surface the dynamic `-File` parameter.\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\nPowerShell Core 7.4.0-preview.2 (behavior dates back to Windows PowerShell)\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2023-04-12T20:59:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19498/PowerShell/issues/19498"}
| 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:93fcd386-5c49-9352-9200-8e41d1ba9e0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B9E:1EB0:791896:B048C2:6A578539 |
| html-safe-nonce | cb386dc276efd4b72bb79b4e2cc0ab658b38eaf53a5234ded4f4d8eb32777461 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjlFOjFFQjA6NzkxODk2OkIwNDhDMjo2QTU3ODUzOSIsInZpc2l0b3JfaWQiOiI5MDM0MjAyNzQ2NzA3MjE1NjczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c9c8970dba00f42cec0d21fb4aa7e692fe26ccb684c673cd38683809654a101d |
| hovercard-subject-tag | issue:1665245488 |
| 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/19498/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d9c5bc996bd4d3635278377f52ca74fa2ecd9967b6588375a394cf8c2926233/PowerShell/PowerShell/issues/19498 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d9c5bc996bd4d3635278377f52ca74fa2ecd9967b6588375a394cf8c2926233/PowerShell/PowerShell/issues/19498 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6353e56e94423c9cd5abde7708a859afa36a0c1203c73749055bf6ee6704cd0 |
| 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 | f59ab1c46b638204e2aea09126d089be5dc773b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width