Title: Make max number of autoimport suggestions configurable · Issue #653 · python-lsp/python-lsp-server · GitHub
Open Graph Title: Make max number of autoimport suggestions configurable · Issue #653 · python-lsp/python-lsp-server
X Title: Make max number of autoimport suggestions configurable · Issue #653 · python-lsp/python-lsp-server
Description: Problem: Currently the maximum number of results for autoimport completions and code actions is hard-coded: python-lsp-server/pylsp/plugins/rope_autoimport.py Lines 26 to 27 in c8e4e99 MAX_RESULTS_COMPLETIONS = 1000 MAX_RESULTS_CODE_ACTI...
Open Graph Description: Problem: Currently the maximum number of results for autoimport completions and code actions is hard-coded: python-lsp-server/pylsp/plugins/rope_autoimport.py Lines 26 to 27 in c8e4e99 MAX_RESULTS_...
X Description: Problem: Currently the maximum number of results for autoimport completions and code actions is hard-coded: python-lsp-server/pylsp/plugins/rope_autoimport.py Lines 26 to 27 in c8e4e99 MAX_RESULTS_...
Opengraph URL: https://github.com/python-lsp/python-lsp-server/issues/653
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make max number of autoimport suggestions configurable","articleBody":"**Problem:** Currently the maximum number of results for autoimport completions and code actions is hard-coded: https://github.com/python-lsp/python-lsp-server/blob/c8e4e992a7d0aee00804433a2211a7b3356f5b6d/pylsp/plugins/rope_autoimport.py#L26-L27\n\nFor the completions it's not an issue because the number is large enough, but for code actions it often cuts off useful suggestions. I first thought that something was broken until I found these constants in the code.\n\n**Solution:** I'd like to add two optional settings for these values. The default would be the current values, so it'd be a non-breaking change. I could open a PR for this.","author":{"url":"https://github.com/kldtz","@type":"Person","name":"kldtz"},"datePublished":"2025-06-05T18:24:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/653/python-lsp-server/issues/653"}
| 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:68b5373a-b0ba-deff-3fb1-70761dedce88 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABB4:1BA1D5:21ED63:2FEE8B:6970A306 |
| html-safe-nonce | 34f3cf189053d51364ab03bd60ee27ea9d26cb947f6dafe4f885c96793e18cf2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkI0OjFCQTFENToyMUVENjM6MkZFRThCOjY5NzBBMzA2IiwidmlzaXRvcl9pZCI6IjU2MDM5Njg4MjQ0NDU1NDMxNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a83ea9bdb03d3ec5e37f02f3d5e2e62f7c2efbd8ac93e4ff9279846da1a28b7d |
| hovercard-subject-tag | issue:3122204652 |
| 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/python-lsp/python-lsp-server/653/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b5ef1627b1f9fb7400b40d1b68128f29d1c55240c591b2b1a9e74b312642e86/python-lsp/python-lsp-server/issues/653 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b5ef1627b1f9fb7400b40d1b68128f29d1c55240c591b2b1a9e74b312642e86/python-lsp/python-lsp-server/issues/653 |
| og:image:alt | Problem: Currently the maximum number of results for autoimport completions and code actions is hard-coded: python-lsp-server/pylsp/plugins/rope_autoimport.py Lines 26 to 27 in c8e4e99 MAX_RESULTS_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kldtz |
| hostname | github.com |
| expected-hostname | github.com |
| None | b06a4c45c45fd0bb038b3759265ea6e38211f45d18130bc65261990be6b5972a |
| turbo-cache-control | no-preview |
| go-import | github.com/python-lsp/python-lsp-server git https://github.com/python-lsp/python-lsp-server.git |
| octolytics-dimension-user_id | 51609341 |
| octolytics-dimension-user_login | python-lsp |
| octolytics-dimension-repository_id | 341006790 |
| octolytics-dimension-repository_nwo | python-lsp/python-lsp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 341006790 |
| octolytics-dimension-repository_network_root_nwo | python-lsp/python-lsp-server |
| 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 | 0e1c4964831785bd64cb22d82e7cf2391ae01f45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width