Title: Preferred way to create completers for in-box cmdlets · Issue #25234 · PowerShell/PowerShell · GitHub
Open Graph Title: Preferred way to create completers for in-box cmdlets · Issue #25234 · PowerShell/PowerShell
X Title: Preferred way to create completers for in-box cmdlets · Issue #25234 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement We have CompletionCompleters.cs file with gigantic size. There's a lot of code for in-box cmdlet completers. That's how it happened historically. Now we have ArgumentCompleterAttribute and IArgume...
Open Graph Description: Summary of the new feature / enhancement We have CompletionCompleters.cs file with gigantic size. There's a lot of code for in-box cmdlet completers. That's how it happened historically. Now we hav...
X Description: Summary of the new feature / enhancement We have CompletionCompleters.cs file with gigantic size. There's a lot of code for in-box cmdlet completers. That's how it happened historically. No...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/25234
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preferred way to create completers for in-box cmdlets","articleBody":"### Summary of the new feature / enhancement\n\nWe have CompletionCompleters.cs file with gigantic size. There's a lot of code for in-box _cmdlet_ completers. That's how it happened historically. \n\nNow we have `ArgumentCompleterAttribute` and `IArgumentCompleter` and it is preferable to use them\n1. to create new specific _cmdlet_ completers\n2. to migrate existing code (Then, ideally, CompletionCompleters.cs file would contain only code related to language constructs as it should be.)\n\nThis will not only allow us to reduce the size of this file. We will be able to unify the code, remove duplication, add more tests, and distinguish common code that can be made public in the future so that users can use it in their projects.\n\nIt is also a step towards the decoupling of modules #9960\n\n/cc @daxian-dbw @ArmaanMcleod @MartinGC94 \n\n### Proposed technical implementation details (optional)\n\n_No response_","author":{"url":"https://github.com/iSazonov","@type":"Person","name":"iSazonov"},"datePublished":"2025-03-25T17:57:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/25234/PowerShell/issues/25234"}
| 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:9c302e16-81b8-7db6-5cd4-855f15fe0b6e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80DA:3A11D6:E96136:13D8FFB:6A55685F |
| html-safe-nonce | f630a63c8724d7ca550ccb722e8fbe2d18ed8a51aba9fbe70937112023bfde34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MERBOjNBMTFENjpFOTYxMzY6MTNEOEZGQjo2QTU1Njg1RiIsInZpc2l0b3JfaWQiOiIyMzI3MjE1MTg5MTY5MzY3MTM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cc9aa8045bcce7b28ac027227586903ee1215f8017db9477a0c116c7e963cde1 |
| hovercard-subject-tag | issue:2947345740 |
| 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/25234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b61e9c346e3a8fb50d2ba8ccdeef9bf759036100ca64dcdb2b6727e4bcd6aa46/PowerShell/PowerShell/issues/25234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b61e9c346e3a8fb50d2ba8ccdeef9bf759036100ca64dcdb2b6727e4bcd6aa46/PowerShell/PowerShell/issues/25234 |
| og:image:alt | Summary of the new feature / enhancement We have CompletionCompleters.cs file with gigantic size. There's a lot of code for in-box cmdlet completers. That's how it happened historically. Now we hav... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iSazonov |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 8201d0b7bc32164c4662de52242e463a356df543 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width