René's URL Explorer Experiment


Title: Add a way to lazily autoload argument completers · Issue #17283 · PowerShell/PowerShell · GitHub

Open Graph Title: Add a way to lazily autoload argument completers · Issue #17283 · PowerShell/PowerShell

X Title: Add a way to lazily autoload argument completers · Issue #17283 · PowerShell/PowerShell

Description: Summary of the new feature / enhancement Currently, argument completers for native commands must be explicitly registered using Register-ArgumentCompleter. However, this means that the module which registers the completer must be eagerly...

Open Graph Description: Summary of the new feature / enhancement Currently, argument completers for native commands must be explicitly registered using Register-ArgumentCompleter. However, this means that the module which...

X Description: Summary of the new feature / enhancement Currently, argument completers for native commands must be explicitly registered using Register-ArgumentCompleter. However, this means that the module which...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17283

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a way to lazily autoload argument completers","articleBody":"### Summary of the new feature / enhancement\n\nCurrently, argument completers for native commands must be explicitly registered using `Register-ArgumentCompleter`. However, this means that the module which registers the completer must be eagerly loaded in `$PROFILE` during startup, otherwise the completions aren't loaded. If many different argument completers are registered, this may take a considerable amount of time on each startup, even when most of the completions are never used in the session.\n\nAs an example, importing `https://github.com/MatejKafka/PowerShell-ArgumentCompleters` takes about 175 ms on my computer. Currently, I'm loading them in an `OnIdle` event callback, which helps, but it's still not ideal and doesn't scale well to a larger number of completers.\n\nIt would be nice to add autoloading support for argument completers. Completions for native commands (together with inline description) are the main reason why I prefer `fish` shell autocompletion over the one in PowerShell.\n \n---\n\nAs an additional food for thought (which is definitely out-of-scope for this issue), currently there isn't any official repository for argument completers. If that was added, it could be possibly to interactively offer the user to download completions for the given command (if available) when they first trigger autocomplete on it, greatly improving the experience of using native commands in PowerShell. It already kinda works this way on Linux, where many packages also install autocompleters for commonly used shells.\n\n### Proposed technical implementation details (optional)\n\nPossible implementation: Add an entry to the module manifest, listing the commands for which it provides argument completers. When completions for the command are requested, the module is autoloaded, which registers the argument completers.\n\nThis implementation has an issue where if the module is large (slow to load), there may be a considerable delay before the completions appear. This could be further improved by also specifying which file contains the argument completer for the given command, so that only that file could be loaded, without loading the whole module. This would allow for one big module, which registers many different completers, each in a separate file, without having to load the whole module.","author":{"url":"https://github.com/MatejKafka","@type":"Person","name":"MatejKafka"},"datePublished":"2022-05-06T23:21:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/17283/PowerShell/issues/17283"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3d889859-96da-e9ff-3020-3e1532b2060b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC33C:260260:CCC333:11820A4:6992EAC2
html-safe-nonce3f9af8ac5695876a59f8a3da083687a2a6c6847d7412845fa925f845612d62d3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzNDOjI2MDI2MDpDQ0MzMzM6MTE4MjBBNDo2OTkyRUFDMiIsInZpc2l0b3JfaWQiOiIzOTUxMjIxMTgzNjY4NzQyODUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc4bd5045c9608d31ac116d4328390819b039ca42c6d953e6fc58814bc5fe8bc5
hovercard-subject-tagissue:1228452883
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/17283/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b83a8af67110416098e64a7de7b896a4ed2aa3d194d42c84fb8f19d88df7bb0b/PowerShell/PowerShell/issues/17283
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b83a8af67110416098e64a7de7b896a4ed2aa3d194d42c84fb8f19d88df7bb0b/PowerShell/PowerShell/issues/17283
og:image:altSummary of the new feature / enhancement Currently, argument completers for native commands must be explicitly registered using Register-ArgumentCompleter. However, this means that the module which...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMatejKafka
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84dcb133269e3cfe6e0296cc85fbacb92cae92bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/17283#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F17283
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F17283
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/17283
Reloadhttps://github.com/PowerShell/PowerShell/issues/17283
Reloadhttps://github.com/PowerShell/PowerShell/issues/17283
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.2k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 51.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 217 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects 7 https://github.com/PowerShell/PowerShell/projects
Security 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17283
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17283
Add a way to lazily autoload argument completershttps://github.com/PowerShell/PowerShell/issues/17283#top
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
RFC-RequiredWorking Groups have decided that an RFC is required for this contributionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22RFC-Required%22
WG-Engine-ParameterBinderhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine-ParameterBinder%22
https://github.com/MatejKafka
https://github.com/MatejKafka
MatejKafkahttps://github.com/MatejKafka
on May 6, 2022https://github.com/PowerShell/PowerShell/issues/17283#issue-1228452883
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
RFC-RequiredWorking Groups have decided that an RFC is required for this contributionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22RFC-Required%22
WG-Engine-ParameterBinderhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine-ParameterBinder%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.